26 template <
typename _Scalar,
int _AmbientDim>
66 inline const VectorType& (
min)()
const {
return m_min; }
70 inline const VectorType& (
max)()
const {
return m_max; }
75 inline bool contains(
const VectorType& p)
const 76 {
return (
m_min.cwise()<=p).all() && (p.cwise()<=
m_max).all(); }
80 {
return (
m_min.cwise()<=(b.
min)()).all() && ((b.
max)().cwise()<=
m_max).all(); }
116 template<
typename NewScalarType>
125 template<
typename OtherScalarType>
128 m_min = (other.
min)().template cast<Scalar>();
129 m_max = (other.
max)().template cast<Scalar>();
144 template<
typename Scalar,
int AmbiantDim>
149 for (
int k=0; k<
dim(); ++k)
AlignedBox & clamp(const AlignedBox &b)
AlignedBox(const VectorType &p)
internal::cast_return_type< AlignedBox, AlignedBox< NewScalarType, AmbientDimAtCompileTime > >::type cast() const
iterative scaling algorithm to equilibrate rows and column norms in matrices
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
Scalar squaredExteriorDistance(const VectorType &p) const
const VectorType &() max() const
AlignedBox & extend(const AlignedBox &b)
const VectorType &() min() const
NumTraits< Scalar >::Real RealScalar
bool contains(const VectorType &p) const
bool isApprox(const AlignedBox &other, typename NumTraits< Scalar >::Real prec=precision< Scalar >()) const
AlignedBox & translate(const VectorType &t)
Derived & setConstant(Index size, const Scalar &value)
AlignedBox & extend(const VectorType &p)
Scalar exteriorDistance(const VectorType &p) const
#define EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(Scalar, Size)
AlignedBox(const VectorType &_min, const VectorType &_max)
Matrix< Scalar, AmbientDimAtCompileTime, 1 > VectorType
AlignedBox(const AlignedBox< OtherScalarType, AmbientDimAtCompileTime > &other)
bool contains(const AlignedBox &b) const