An axis aligned box. More...
#include <ForwardDeclarations.h>
Public Types | |
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 } |
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 | |
EIGEN_DEVICE_FUNC | AlignedBox () |
EIGEN_DEVICE_FUNC | AlignedBox (Index _dim) |
template<typename OtherVectorType1 , typename OtherVectorType2 > | |
EIGEN_DEVICE_FUNC | AlignedBox (const OtherVectorType1 &_min, const OtherVectorType2 &_max) |
template<typename Derived > | |
EIGEN_DEVICE_FUNC | AlignedBox (const MatrixBase< Derived > &p) |
template<typename OtherScalarType > | |
EIGEN_DEVICE_FUNC | AlignedBox (const AlignedBox< OtherScalarType, AmbientDimAtCompileTime > &other) |
template<typename NewScalarType > | |
EIGEN_DEVICE_FUNC internal::cast_return_type< AlignedBox, AlignedBox< NewScalarType, AmbientDimAtCompileTime > >::type | cast () const |
EIGEN_DEVICE_FUNC AlignedBox & | clamp (const AlignedBox &b) |
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 VectorType | corner (CornerType corner) const |
EIGEN_DEVICE_FUNC CwiseBinaryOp< internal::scalar_difference_op< Scalar, Scalar >, const VectorType, const VectorType > | diagonal () const |
EIGEN_DEVICE_FUNC Index | dim () const |
EIGEN_DEVICE_FUNC const | EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE (VectorTypeSum, RealScalar, quotient) center() const |
template<typename Derived > | |
EIGEN_DEVICE_FUNC AlignedBox & | extend (const MatrixBase< Derived > &p) |
EIGEN_DEVICE_FUNC AlignedBox & | extend (const AlignedBox &b) |
template<typename Derived > | |
EIGEN_DEVICE_FUNC NonInteger | exteriorDistance (const MatrixBase< Derived > &p) const |
EIGEN_DEVICE_FUNC NonInteger | exteriorDistance (const AlignedBox &b) const |
EIGEN_DEVICE_FUNC AlignedBox | intersection (const AlignedBox &b) const |
EIGEN_DEVICE_FUNC bool | intersects (const AlignedBox &b) const |
EIGEN_DEVICE_FUNC bool | isApprox (const AlignedBox &other, const RealScalar &prec=ScalarTraits::dummy_precision()) const |
EIGEN_DEVICE_FUNC bool | isEmpty () const |
EIGEN_DEVICE_FUNC bool | isNull () const |
EIGEN_DEVICE_FUNC const VectorType &() | max () const |
EIGEN_DEVICE_FUNC VectorType &() | max () |
EIGEN_DEVICE_FUNC AlignedBox | merged (const AlignedBox &b) const |
EIGEN_DEVICE_FUNC const VectorType &() | min () const |
EIGEN_DEVICE_FUNC VectorType &() | min () |
EIGEN_DEVICE_FUNC VectorType | sample () const |
EIGEN_DEVICE_FUNC void | setEmpty () |
EIGEN_DEVICE_FUNC void | setNull () |
EIGEN_DEVICE_FUNC const CwiseBinaryOp< internal::scalar_difference_op< Scalar, Scalar >, const VectorType, const VectorType > | sizes () const |
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 AlignedBox & | translate (const MatrixBase< Derived > &a_t) |
EIGEN_DEVICE_FUNC Scalar | volume () const |
EIGEN_DEVICE_FUNC | ~AlignedBox () |
Protected Attributes | |
VectorType | m_max |
VectorType | m_min |
An axis aligned box.
_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 272 of file ForwardDeclarations.h.
typedef Eigen::Index Eigen::AlignedBox< _Scalar, _AmbientDim >::Index |
Definition at line 37 of file AlignedBox.h.
typedef ScalarTraits::NonInteger Eigen::AlignedBox< _Scalar, _AmbientDim >::NonInteger |
Definition at line 39 of file AlignedBox.h.
typedef ScalarTraits::Real Eigen::AlignedBox< _Scalar, _AmbientDim >::RealScalar |
Definition at line 38 of file AlignedBox.h.
typedef _Scalar Eigen::AlignedBox< _Scalar, _AmbientDim >::Scalar |
Definition at line 35 of file AlignedBox.h.
typedef NumTraits<Scalar> Eigen::AlignedBox< _Scalar, _AmbientDim >::ScalarTraits |
Definition at line 36 of file AlignedBox.h.
typedef Matrix<Scalar,AmbientDimAtCompileTime,1> Eigen::AlignedBox< _Scalar, _AmbientDim >::VectorType |
Definition at line 40 of file AlignedBox.h.
typedef CwiseBinaryOp<internal::scalar_sum_op<Scalar>, const VectorType, const VectorType> Eigen::AlignedBox< _Scalar, _AmbientDim >::VectorTypeSum |
Definition at line 41 of file AlignedBox.h.
anonymous enum |
Enumerator | |
---|---|
AmbientDimAtCompileTime |
Definition at line 34 of file AlignedBox.h.
enum Eigen::AlignedBox::CornerType |
Define constants to name the corners of a 1D, 2D or 3D axis aligned bounding box
Definition at line 44 of file AlignedBox.h.
|
inline |
Default constructor initializing a null box.
Definition at line 65 of file AlignedBox.h.
|
inlineexplicit |
Constructs a null box with _dim the dimension of the ambient space.
Definition at line 69 of file AlignedBox.h.
|
inline |
Constructs a box with extremities _min and _max.
Definition at line 75 of file AlignedBox.h.
|
inlineexplicit |
Constructs a box containing a single point p.
Definition at line 79 of file AlignedBox.h.
|
inline |
Definition at line 82 of file AlignedBox.h.
|
inlineexplicit |
Copy constructor with scalar type conversion
Definition at line 292 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 284 of file AlignedBox.h.
|
inline |
Clamps *this
by the box b and returns a reference to *this
.
Definition at line 220 of file AlignedBox.h.
|
inline |
*this
. Definition at line 182 of file AlignedBox.h.
|
inline |
*this
. Definition at line 189 of file AlignedBox.h.
|
inline |
Definition at line 146 of file AlignedBox.h.
|
inline |
Definition at line 134 of file AlignedBox.h.
|
inline |
Definition at line 85 of file AlignedBox.h.
|
inline |
Definition at line 115 of file AlignedBox.h.
|
inline |
Extends *this
such that it contains the point p and returns a reference to *this
.
Definition at line 200 of file AlignedBox.h.
|
inline |
Extends *this
such that it contains the box b and returns a reference to *this
.
Definition at line 210 of file AlignedBox.h.
|
inline |
*this
, and zero if p is inside the box. Definition at line 267 of file AlignedBox.h.
|
inline |
*this
, and zero if the boxes intersect. Definition at line 274 of file AlignedBox.h.
|
inline |
Returns an AlignedBox that is the intersection of b and *this
Definition at line 230 of file AlignedBox.h.
|
inline |
*this
. Definition at line 194 of file AlignedBox.h.
|
inline |
true
if *this
is approximately equal to other, within the precision determined by prec.Definition at line 302 of file AlignedBox.h.
|
inline |
|
inline |
Definition at line 88 of file AlignedBox.h.
|
inline |
Definition at line 110 of file AlignedBox.h.
|
inline |
Definition at line 112 of file AlignedBox.h.
|
inline |
Returns an AlignedBox that is the union of b and *this
.
*this
. Definition at line 236 of file AlignedBox.h.
|
inline |
Definition at line 106 of file AlignedBox.h.
|
inline |
Definition at line 108 of file AlignedBox.h.
|
inline |
Definition at line 164 of file AlignedBox.h.
|
inline |
|
inline |
Definition at line 91 of file AlignedBox.h.
|
inline |
Definition at line 123 of file AlignedBox.h.
|
inline |
*this
, and zero if p is inside the box. Definition at line 314 of file AlignedBox.h.
|
inline |
*this
, and zero if the boxes intersect. Definition at line 336 of file AlignedBox.h.
|
inline |
Translate *this
by the vector t and returns a reference to *this
.
Definition at line 241 of file AlignedBox.h.
|
inline |
Definition at line 127 of file AlignedBox.h.
|
protected |
Definition at line 307 of file AlignedBox.h.
|
protected |
Definition at line 307 of file AlignedBox.h.