diff --git a/include/hpp/fcl/BV/AABB.h b/include/hpp/fcl/BV/AABB.h index d0ffca345407f1379f4026c3a47abff98f6653c7..f71d1a0ca6e08b201435bd8cf9e1d96ecf1e2dcb 100644 --- a/include/hpp/fcl/BV/AABB.h +++ b/include/hpp/fcl/BV/AABB.h @@ -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; }