Skip to content
Snippets Groups Projects
Commit 48ba15ac authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Fix AABB

parent d62d959c
No related branches found
No related tags found
Loading
......@@ -143,16 +143,16 @@ public:
/// @brief Merge the AABB and a point
inline AABB& operator += (const Vec3f& p)
{
min_.array().min(p.array());
max_.array().max(p.array());
min_ = min_.cwiseMin(p);
max_ = max_.cwiseMax(p);
return *this;
}
/// @brief Merge the AABB and another AABB
inline AABB& operator += (const AABB& other)
{
min_.array().min(other.min_.array());
max_.array().max(other.max_.array());
min_ = min_.cwiseMin(other.min_);
max_ = max_.cwiseMax(other.max_);
return *this;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment