An axis aligned box. More...
Public Types | |
| enum | { AmbientDimAtCompileTime } |
| enum | CornerType { Min , Max , BottomLeft , BottomRight , TopLeft , TopRight , BottomLeftFloor , BottomRightFloor , TopLeftFloor , TopRightFloor , BottomLeftCeil , BottomRightCeil , TopLeftCeil , TopRightCeil } |
| typedef Eigen::Index | Index |
| typedef ScalarTraits::NonInteger | NonInteger |
| typedef ScalarTraits::Real | RealScalar |
| typedef Scalar_ | Scalar |
| typedef NumTraits< Scalar > | ScalarTraits |
| typedef Matrix< Scalar, AmbientDimAtCompileTime, 1 > | VectorType |
| typedef CwiseBinaryOp< internal::scalar_sum_op< Scalar >, const VectorType, const VectorType > | VectorTypeSum |
Public Member Functions | |
| AlignedBox () | |
| template<typename OtherScalarType > | |
| AlignedBox (const AlignedBox< OtherScalarType, AmbientDimAtCompileTime > &other) | |
| template<typename Derived > | |
| AlignedBox (const MatrixBase< Derived > &p) | |
| template<typename OtherVectorType1 , typename OtherVectorType2 > | |
| AlignedBox (const OtherVectorType1 &_min, const OtherVectorType2 &_max) | |
| AlignedBox (Index _dim) | |
| template<typename NewScalarType > | |
| internal::cast_return_type< AlignedBox, AlignedBox< NewScalarType, AmbientDimAtCompileTime > >::type | cast () const |
| AlignedBox & | clamp (const AlignedBox &b) |
| bool | contains (const AlignedBox &b) const |
| template<typename Derived > | |
| bool | contains (const MatrixBase< Derived > &p) const |
| VectorType | corner (CornerType corner) const |
| CwiseBinaryOp< internal::scalar_difference_op< Scalar, Scalar >, const VectorType, const VectorType > | diagonal () const |
| Index | dim () const |
| const | EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE (VectorTypeSum, RealScalar, quotient) center() const |
| AlignedBox & | extend (const AlignedBox &b) |
| template<typename Derived > | |
| AlignedBox & | extend (const MatrixBase< Derived > &p) |
| NonInteger | exteriorDistance (const AlignedBox &b) const |
| template<typename Derived > | |
| NonInteger | exteriorDistance (const MatrixBase< Derived > &p) const |
| AlignedBox | intersection (const AlignedBox &b) const |
| bool | intersects (const AlignedBox &b) const |
| bool | isApprox (const AlignedBox &other, const RealScalar &prec=ScalarTraits::dummy_precision()) const |
| bool | isEmpty () const |
| bool | isNull () const |
| VectorType &() | max () |
| const VectorType &() | max () const |
| AlignedBox | merged (const AlignedBox &b) const |
| VectorType &() | min () |
| const VectorType &() | min () const |
| VectorType | sample () const |
| void | setEmpty () |
| void | setNull () |
| const CwiseBinaryOp< internal::scalar_difference_op< Scalar, Scalar >, const VectorType, const VectorType > | sizes () const |
| Scalar | squaredExteriorDistance (const AlignedBox &b) const |
| template<typename Derived > | |
| Scalar | squaredExteriorDistance (const MatrixBase< Derived > &p) const |
| template<int Mode, int Options> | |
| void | transform (const Transform< Scalar, AmbientDimAtCompileTime, Mode, Options > &transform) |
| template<int Mode, int Options> | |
| void | transform (const typename Transform< Scalar, AmbientDimAtCompileTime, Mode, Options >::TranslationType &translation) |
| template<int Mode, int Options> | |
| AlignedBox | transformed (const Transform< Scalar, AmbientDimAtCompileTime, Mode, Options > &transform) const |
| template<typename Derived > | |
| AlignedBox & | translate (const MatrixBase< Derived > &a_t) |
| template<typename Derived > | |
| AlignedBox | translated (const MatrixBase< Derived > &a_t) const |
| Scalar | volume () const |
| ~AlignedBox () | |
Protected Attributes | |
| VectorType | m_max |
| VectorType | m_min |
An axis aligned box.
This is defined in the Geometry module.
| Scalar_ | the type of the scalar coefficients |
| AmbientDim_ | the dimension of the ambient space, can be a compile time value or Dynamic. |
This class represents an axis aligned box as a pair of the minimal and maximal corners.
Definition at line 68 of file AlignedBox.h.
| typedef Eigen::Index Eigen::AlignedBox< Scalar_, AmbientDim_ >::Index |
Definition at line 75 of file AlignedBox.h.
| typedef ScalarTraits::NonInteger Eigen::AlignedBox< Scalar_, AmbientDim_ >::NonInteger |
Definition at line 77 of file AlignedBox.h.
| typedef ScalarTraits::Real Eigen::AlignedBox< Scalar_, AmbientDim_ >::RealScalar |
Definition at line 76 of file AlignedBox.h.
| typedef Scalar_ Eigen::AlignedBox< Scalar_, AmbientDim_ >::Scalar |
Definition at line 73 of file AlignedBox.h.
| typedef NumTraits<Scalar> Eigen::AlignedBox< Scalar_, AmbientDim_ >::ScalarTraits |
Definition at line 74 of file AlignedBox.h.
| typedef Matrix<Scalar,AmbientDimAtCompileTime,1> Eigen::AlignedBox< Scalar_, AmbientDim_ >::VectorType |
Definition at line 78 of file AlignedBox.h.
| typedef CwiseBinaryOp<internal::scalar_sum_op<Scalar>, const VectorType, const VectorType> Eigen::AlignedBox< Scalar_, AmbientDim_ >::VectorTypeSum |
Definition at line 79 of file AlignedBox.h.
| anonymous enum |
| enum Eigen::AlignedBox::CornerType |
Define constants to name the corners of a 1D, 2D or 3D axis aligned bounding box
Definition at line 82 of file AlignedBox.h.
|
inline |
|
inlineexplicit |
Constructs a null box with _dim the dimension of the ambient space.
Definition at line 107 of file AlignedBox.h.
|
inline |
Constructs a box with extremities _min and _max.
Definition at line 113 of file AlignedBox.h.
|
inlineexplicit |
Constructs a box containing a single point p.
Definition at line 117 of file AlignedBox.h.
|
inline |
Definition at line 120 of file AlignedBox.h.
|
inlineexplicit |
Copy constructor with scalar type conversion
Definition at line 388 of file AlignedBox.h.
|
inline |
*this with scalar type casted to NewScalarType Note that if NewScalarType is equal to the current scalar type of *this then this function smartly returns a const reference to *this.
Definition at line 380 of file AlignedBox.h.
|
inline |
Clamps *this by the box b and returns a reference to *this.
Definition at line 258 of file AlignedBox.h.
|
inline |
|
inline |
|
inline |
Definition at line 184 of file AlignedBox.h.
|
inline |
Definition at line 172 of file AlignedBox.h.
|
inline |
|
inline |
|
inline |
Extends *this such that it contains the box b and returns a reference to *this.
Definition at line 248 of file AlignedBox.h.
|
inline |
Extends *this such that it contains the point p and returns a reference to *this.
Definition at line 238 of file AlignedBox.h.
|
inline |
*this, and zero if the boxes intersect. Definition at line 321 of file AlignedBox.h.
|
inline |
*this, and zero if p is inside the box. Definition at line 314 of file AlignedBox.h.
|
inline |
Returns an AlignedBox that is the intersection of b and *this
Definition at line 268 of file AlignedBox.h.
|
inline |
*this. Definition at line 232 of file AlignedBox.h.
|
inline |
true if *this is approximately equal to other, within the precision determined by prec.Definition at line 398 of file AlignedBox.h.
|
inline |
|
inline |
Definition at line 126 of file AlignedBox.h.
|
inline |
|
inline |
|
inline |
Returns an AlignedBox that is the union of b and *this.
*this. Definition at line 274 of file AlignedBox.h.
|
inline |
|
inline |
|
inline |
Definition at line 202 of file AlignedBox.h.
|
inline |
Makes *this an empty box.
Definition at line 137 of file AlignedBox.h.
|
inline |
|
inline |
Definition at line 161 of file AlignedBox.h.
|
inline |
*this, and zero if the boxes intersect. Definition at line 432 of file AlignedBox.h.
|
inline |
*this, and zero if p is inside the box. Definition at line 410 of file AlignedBox.h.
|
inline |
Transforms this box by transform and recomputes it to still be an axis-aligned box.
Definition at line 341 of file AlignedBox.h.
|
inline |
Specialization of transform for pure translation.
Definition at line 328 of file AlignedBox.h.
|
inline |
*this transformed by transform and recomputed to still be an axis-aligned box. Definition at line 366 of file AlignedBox.h.
|
inline |
Translate *this by the vector t and returns a reference to *this.
Definition at line 279 of file AlignedBox.h.
|
inline |
*this translated by the vector t. Definition at line 289 of file AlignedBox.h.
|
inline |
|
protected |
Definition at line 403 of file AlignedBox.h.
|
protected |
Definition at line 403 of file AlignedBox.h.