|
enum | { AmbientDimAtCompileTime = _AmbientDim
} |
|
enum | CornerType {
Min =0,
Max =1,
BottomLeft =0,
BottomRight =1,
TopLeft =2,
TopRight =3,
BottomLeftFloor =0,
BottomRightFloor =1,
TopLeftFloor =2,
TopRightFloor =3,
BottomLeftCeil =4,
BottomRightCeil =5,
TopLeftCeil =6,
TopRightCeil =7
} |
| Define constants to name the corners of a 1D, 2D or 3D axis aligned bounding box. More...
|
|
typedef _Scalar | Scalar |
|
typedef NumTraits< Scalar > | ScalarTraits |
|
typedef Eigen::Index | Index |
|
typedef ScalarTraits::Real | RealScalar |
|
typedef ScalarTraits::NonInteger | NonInteger |
|
typedef Matrix< Scalar, AmbientDimAtCompileTime, 1 > | VectorType |
|
typedef CwiseBinaryOp< internal::scalar_sum_op< Scalar >, const VectorType, const VectorType > | VectorTypeSum |
|
|
|
|
|
EIGEN_DEVICE_FUNC | AlignedBox () |
| Default constructor initializing a null box. More...
|
|
EIGEN_DEVICE_FUNC | AlignedBox (Index _dim) |
| Constructs a null box with _dim the dimension of the ambient space. More...
|
|
template<typename OtherVectorType1 , typename OtherVectorType2 > |
EIGEN_DEVICE_FUNC | AlignedBox (const OtherVectorType1 &_min, const OtherVectorType2 &_max) |
| Constructs a box with extremities _min and _max. More...
|
|
template<typename Derived > |
EIGEN_DEVICE_FUNC | AlignedBox (const MatrixBase< Derived > &p) |
| Constructs a box containing a single point p. More...
|
|
EIGEN_DEVICE_FUNC Index | dim () const |
|
EIGEN_DEVICE_FUNC bool | isNull () const |
|
EIGEN_DEVICE_FUNC void | setNull () |
|
EIGEN_DEVICE_FUNC bool | isEmpty () const |
|
EIGEN_DEVICE_FUNC void | setEmpty () |
| Makes *this an empty box. More...
|
|
EIGEN_DEVICE_FUNC const VectorType &() | min () const |
|
EIGEN_DEVICE_FUNC VectorType &() | min () |
|
EIGEN_DEVICE_FUNC const VectorType &() | max () const |
|
EIGEN_DEVICE_FUNC VectorType &() | max () |
|
EIGEN_DEVICE_FUNC const | EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE (VectorTypeSum, RealScalar, quotient) center() const |
|
EIGEN_DEVICE_FUNC const CwiseBinaryOp< internal::scalar_difference_op< Scalar, Scalar >, const VectorType, const VectorType > | sizes () const |
|
EIGEN_DEVICE_FUNC Scalar | volume () const |
|
EIGEN_DEVICE_FUNC CwiseBinaryOp< internal::scalar_difference_op< Scalar, Scalar >, const VectorType, const VectorType > | diagonal () const |
|
EIGEN_DEVICE_FUNC VectorType | corner (CornerType corner) const |
|
EIGEN_DEVICE_FUNC VectorType | sample () const |
|
template<typename Derived > |
EIGEN_DEVICE_FUNC bool | contains (const MatrixBase< Derived > &p) const |
|
EIGEN_DEVICE_FUNC bool | contains (const AlignedBox &b) const |
|
EIGEN_DEVICE_FUNC bool | intersects (const AlignedBox &b) const |
|
template<typename Derived > |
EIGEN_DEVICE_FUNC AlignedBox & | extend (const MatrixBase< Derived > &p) |
| Extends *this such that it contains the point p and returns a reference to *this . More...
|
|
EIGEN_DEVICE_FUNC AlignedBox & | extend (const AlignedBox &b) |
| Extends *this such that it contains the box b and returns a reference to *this . More...
|
|
EIGEN_DEVICE_FUNC AlignedBox & | clamp (const AlignedBox &b) |
| Clamps *this by the box b and returns a reference to *this . More...
|
|
EIGEN_DEVICE_FUNC AlignedBox | intersection (const AlignedBox &b) const |
| Returns an AlignedBox that is the intersection of b and *this . More...
|
|
EIGEN_DEVICE_FUNC AlignedBox | merged (const AlignedBox &b) const |
| Returns an AlignedBox that is the union of b and *this . More...
|
|
template<typename Derived > |
EIGEN_DEVICE_FUNC AlignedBox & | translate (const MatrixBase< Derived > &a_t) |
| Translate *this by the vector t and returns a reference to *this . More...
|
|
template<typename Derived > |
EIGEN_DEVICE_FUNC Scalar | squaredExteriorDistance (const MatrixBase< Derived > &p) const |
|
EIGEN_DEVICE_FUNC Scalar | squaredExteriorDistance (const AlignedBox &b) const |
|
template<typename Derived > |
EIGEN_DEVICE_FUNC NonInteger | exteriorDistance (const MatrixBase< Derived > &p) const |
|
EIGEN_DEVICE_FUNC NonInteger | exteriorDistance (const AlignedBox &b) const |
|
template<typename NewScalarType > |
EIGEN_DEVICE_FUNC internal::cast_return_type< AlignedBox, AlignedBox< NewScalarType, AmbientDimAtCompileTime > >::type | cast () const |
|
template<typename OtherScalarType > |
EIGEN_DEVICE_FUNC | AlignedBox (const AlignedBox< OtherScalarType, AmbientDimAtCompileTime > &other) |
| Copy constructor with scalar type conversion.
|
|
EIGEN_DEVICE_FUNC bool | isApprox (const AlignedBox &other, const RealScalar &prec=ScalarTraits::dummy_precision()) const |
|
template<typename _Scalar, int _AmbientDim>
class Eigen::AlignedBox< _Scalar, _AmbientDim >
An axis aligned box
- Template Parameters
-
_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.
- Warning
- The result of most methods is undefined when applied to an empty box. You can check for empty boxes using isEmpty().
- See also
- Global aligned box typedefs