![]() |
|
An axis aligned box. More...
#include <AlignedBox.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 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 |
Protected Attributes | |
VectorType | m_min |
VectorType | m_max |
An axis aligned box.
\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.
typedef Eigen::Index Eigen::AlignedBox< Scalar_, AmbientDim_ >::Index |
typedef ScalarTraits::NonInteger Eigen::AlignedBox< Scalar_, AmbientDim_ >::NonInteger |
typedef ScalarTraits::Real Eigen::AlignedBox< Scalar_, AmbientDim_ >::RealScalar |
typedef Scalar_ Eigen::AlignedBox< Scalar_, AmbientDim_ >::Scalar |
typedef NumTraits<Scalar> Eigen::AlignedBox< Scalar_, AmbientDim_ >::ScalarTraits |
typedef Matrix<Scalar, AmbientDimAtCompileTime, 1> Eigen::AlignedBox< Scalar_, AmbientDim_ >::VectorType |
typedef CwiseBinaryOp<internal::scalar_sum_op<Scalar>, const VectorType, const VectorType> Eigen::AlignedBox< Scalar_, AmbientDim_ >::VectorTypeSum |
enum Eigen::AlignedBox::CornerType |
Define constants to name the corners of a 1D, 2D or 3D axis aligned bounding box
|
inline |
Default constructor initializing a null box.
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::AmbientDimAtCompileTime, Eigen::Dynamic, EIGEN_CONST_CONDITIONAL, and Eigen::AlignedBox< Scalar_, AmbientDim_ >::setEmpty().
Referenced by Eigen::AlignedBox< Scalar_, AmbientDim_ >::intersection(), and Eigen::AlignedBox< Scalar_, AmbientDim_ >::merged().
|
inlineexplicit |
Constructs a null box with _dim the dimension of the ambient space.
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::setEmpty().
|
inline |
|
inlineexplicit |
|
inline |
|
inlineexplicit |
Copy constructor with scalar type conversion
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min, Eigen::AlignedBox< Scalar_, AmbientDim_ >::max(), and Eigen::AlignedBox< Scalar_, AmbientDim_ >::min().
|
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
.
References compute_granudrum_aor::type.
|
inline |
Clamps *this
by the box b and returns a reference to *this
.
References b, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, and Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min.
|
inline |
*this
. References Eigen::placeholders::all, b, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, and Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min.
|
inline |
*this
. References Eigen::placeholders::all, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min, and p.
|
inline |
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::dim(), EIGEN_STATIC_ASSERT, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min, and res.
|
inline |
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::sizes().
|
inline |
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::AmbientDimAtCompileTime, Eigen::Dynamic, and Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min.
Referenced by Eigen::AlignedBox< Scalar_, AmbientDim_ >::corner(), and Eigen::AlignedBox< Scalar_, AmbientDim_ >::sample().
|
inline |
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, and Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min.
|
inline |
Extends *this
such that it contains the box b and returns a reference to *this
.
References b, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, and Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min.
|
inline |
Extends *this
such that it contains the point p and returns a reference to *this
.
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min, and p.
|
inline |
*this
, and zero if the boxes intersect. References b, EIGEN_USING_STD, sqrt(), and Eigen::AlignedBox< Scalar_, AmbientDim_ >::squaredExteriorDistance().
|
inline |
*this
, and zero if p is inside the box. References EIGEN_USING_STD, p, sqrt(), and Eigen::AlignedBox< Scalar_, AmbientDim_ >::squaredExteriorDistance().
|
inline |
Returns an AlignedBox that is the intersection of b and *this
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::AlignedBox(), b, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, and Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min.
Referenced by BallPointStuff< Dim >::intersectVolumeVolume().
|
inline |
*this
. References Eigen::placeholders::all, b, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, and Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min.
|
inline |
true
if *this
is approximately equal to other, within the precision determined by prec.References Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, and Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min.
|
inline |
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, and Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min.
Referenced by Eigen::AlignedBox< Scalar_, AmbientDim_ >::isNull(), and Eigen::AlignedBox< Scalar_, AmbientDim_ >::volume().
|
inline |
|
inline |
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max.
|
inline |
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max.
Referenced by Eigen::AlignedBox< Scalar_, AmbientDim_ >::AlignedBox().
|
inline |
Returns an AlignedBox that is the union of b and *this
.
*this
. References Eigen::AlignedBox< Scalar_, AmbientDim_ >::AlignedBox(), b, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, and Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min.
|
inline |
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min.
|
inline |
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min.
Referenced by Eigen::AlignedBox< Scalar_, AmbientDim_ >::AlignedBox().
|
inline |
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::dim(), Eigen::GenericNumTraits< T >::IsInteger, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min, and UniformPSDSelfTest::r.
|
inline |
Makes *this
an empty box.
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min, and Eigen::PlainObjectBase< Derived >::setConstant().
Referenced by Eigen::AlignedBox< Scalar_, AmbientDim_ >::AlignedBox(), and Eigen::AlignedBox< Scalar_, AmbientDim_ >::setNull().
|
inline |
|
inline |
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, and Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min.
Referenced by Eigen::AlignedBox< Scalar_, AmbientDim_ >::diagonal(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::transform(), and Eigen::AlignedBox< Scalar_, AmbientDim_ >::volume().
|
inline |
*this
, and zero if the boxes intersect.
|
inline |
*this
, and zero if p is inside the box. Referenced by Eigen::AlignedBox< Scalar_, AmbientDim_ >::exteriorDistance(), PointPointMinimizer::minimumOnVolumeVolume(), and BallPointStuff< Dim >::minimumOnVolumeVolume().
|
inline |
Transforms this box by transform and recomputes it to still be an axis-aligned box.
References Eigen::Affine, Eigen::AffineCompact, EIGEN_STATIC_ASSERT, Eigen::Isometry, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min, Eigen::AlignedBox< Scalar_, AmbientDim_ >::sizes(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::transform(), and Eigen::Transform< Scalar_, Dim_, Mode_, Options_ >::translation().
|
inline |
Specialization of transform for pure translation.
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::translate().
Referenced by Eigen::AlignedBox< Scalar_, AmbientDim_ >::transform(), and Eigen::AlignedBox< Scalar_, AmbientDim_ >::transformed().
|
inline |
*this
transformed by transform and recomputed to still be an axis-aligned box. References Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min, and Eigen::AlignedBox< Scalar_, AmbientDim_ >::transform().
|
inline |
Translate *this
by the vector t and returns a reference to *this
.
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min, and plotPSD::t.
Referenced by Eigen::AlignedBox< Scalar_, AmbientDim_ >::transform(), and Eigen::AlignedBox< Scalar_, AmbientDim_ >::translated().
|
inline |
*this
translated by the vector t. References Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_max, Eigen::AlignedBox< Scalar_, AmbientDim_ >::m_min, and Eigen::AlignedBox< Scalar_, AmbientDim_ >::translate().
|
inline |
References Eigen::AlignedBox< Scalar_, AmbientDim_ >::isEmpty(), and Eigen::AlignedBox< Scalar_, AmbientDim_ >::sizes().
|
protected |
Referenced by Eigen::AlignedBox< Scalar_, AmbientDim_ >::AlignedBox(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::clamp(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::contains(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::corner(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::extend(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::intersection(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::intersects(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::isApprox(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::isEmpty(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::max(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::merged(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::sample(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::setEmpty(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::sizes(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::transform(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::transformed(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::translate(), and Eigen::AlignedBox< Scalar_, AmbientDim_ >::translated().
|
protected |
Referenced by Eigen::AlignedBox< Scalar_, AmbientDim_ >::AlignedBox(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::clamp(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::contains(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::corner(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::dim(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::extend(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::intersection(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::intersects(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::isApprox(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::isEmpty(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::merged(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::min(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::sample(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::setEmpty(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::sizes(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::transform(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::transformed(), Eigen::AlignedBox< Scalar_, AmbientDim_ >::translate(), and Eigen::AlignedBox< Scalar_, AmbientDim_ >::translated().