Go to the documentation of this file.
46 #ifndef EIGEN_ALIGNEDBOX_H
47 #define EIGEN_ALIGNEDBOX_H
65 template <
typename _Scalar,
int _AmbientDim>
110 template<
typename OtherVectorType1,
typename OtherVectorType2>
114 template<
typename Derived>
164 {
return sizes().prod(); }
217 template<
typename Derived>
221 return (
m_min.array()<=p_n.array()).all() && (p_n.array()<=
m_max.array()).
all();
226 {
return (
m_min.array()<=(
b.min)().array()).all() && ((
b.max)().array()<=
m_max.array()).
all(); }
231 {
return (
m_min.array()<=(
b.max)().array()).all() && ((
b.min)().array()<=
m_max.array()).
all(); }
235 template<
typename Derived>
276 template<
typename Derived>
286 template<
typename Derived>
298 template<
typename Derived>
311 template<
typename Derived>
325 template<
int Mode,
int Options>
338 template<
int Mode,
int Options>
355 this->
m_max = (rotated_center_2 + rotated_extent_2) /
Scalar(2);
356 this->
m_min = (rotated_center_2 - rotated_extent_2) /
Scalar(2);
363 template<
int Mode,
int Options>
376 template<
typename NewScalarType>
385 template<
typename OtherScalarType>
388 m_min = (
other.min)().template cast<Scalar>();
389 m_max = (
other.max)().template cast<Scalar>();
406 template<
typename Scalar,
int AmbientDim>
407 template<
typename Derived>
413 for (
Index k=0; k<dim(); ++k)
415 if( m_min[k] >
p[k] )
417 aux = m_min[k] -
p[k];
420 else if(
p[k] > m_max[k] )
422 aux =
p[k] - m_max[k];
429 template<
typename Scalar,
int AmbientDim>
434 for (
Index k=0; k<dim(); ++k)
436 if( m_min[k] >
b.m_max[k] )
438 aux = m_min[k] -
b.m_max[k];
441 else if(
b.m_min[k] > m_max[k] )
443 aux =
b.m_min[k] - m_max[k];
466 #define EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, Size, SizeSuffix) \
468 typedef AlignedBox<Type, Size> AlignedBox##SizeSuffix##TypeSuffix;
470 #define EIGEN_MAKE_TYPEDEFS_ALL_SIZES(Type, TypeSuffix) \
471 EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, 1, 1) \
472 EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, 2, 2) \
473 EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, 3, 3) \
474 EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, 4, 4) \
475 EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, Dynamic, X)
481 #undef EIGEN_MAKE_TYPEDEFS_ALL_SIZES
482 #undef EIGEN_MAKE_TYPEDEFS
486 #endif // EIGEN_ALIGNEDBOX_H
ScalarTraits::Real RealScalar
#define EIGEN_DEVICE_FUNC
Namespace containing all symbols from the Eigen library.
EIGEN_DEVICE_FUNC ~AlignedBox()
@ AmbientDimAtCompileTime
#define EIGEN_USING_STD(FUNC)
EIGEN_DEVICE_FUNC AlignedBox merged(const AlignedBox &b) const
Generic expression where a coefficient-wise binary operator is applied to two expressions.
static const double d[K][N]
EIGEN_DEVICE_FUNC bool isApprox(const AlignedBox &other, const RealScalar &prec=ScalarTraits::dummy_precision()) const
const EIGEN_DEVICE_FUNC VectorType &() min() const
const EIGEN_DEVICE_FUNC VectorType &() max() const
EIGEN_DEVICE_FUNC AlignedBox intersection(const AlignedBox &b) const
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
EIGEN_DEVICE_FUNC AlignedBox & clamp(const AlignedBox &b)
EIGEN_DEVICE_FUNC AlignedBox & extend(const AlignedBox &b)
EIGEN_DEVICE_FUNC void transform(const Transform< Scalar, AmbientDimAtCompileTime, Mode, Options > &transform)
EIGEN_DEVICE_FUNC VectorType sample() const
EIGEN_DEVICE_FUNC Derived & setConstant(Index size, const Scalar &val)
EIGEN_DEVICE_FUNC AlignedBox & translate(const MatrixBase< Derived > &a_t)
EIGEN_DEVICE_FUNC bool isEmpty() const
EIGEN_DEVICE_FUNC Index dim() const
const EIGEN_DEVICE_FUNC EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(VectorTypeSum, RealScalar, quotient) center() const
NumTraits< Scalar > ScalarTraits
static const Eigen::internal::all_t all
EIGEN_DEVICE_FUNC VectorType &() min()
EIGEN_DEVICE_FUNC void setNull()
EIGEN_DEVICE_FUNC bool contains(const MatrixBase< Derived > &p) const
Matrix< Scalar, AmbientDimAtCompileTime, 1 > VectorType
EIGEN_DEVICE_FUNC void transform(const typename Transform< Scalar, AmbientDimAtCompileTime, Mode, Options >::TranslationType &translation)
EIGEN_DEVICE_FUNC CwiseBinaryOp< internal::scalar_difference_op< Scalar, Scalar >, const VectorType, const VectorType > diagonal() const
EIGEN_DEVICE_FUNC bool isNull() const
EIGEN_DEVICE_FUNC void setEmpty()
EIGEN_DEVICE_FUNC AlignedBox transformed(const Transform< Scalar, AmbientDimAtCompileTime, Mode, Options > &transform) const
EIGEN_DEVICE_FUNC AlignedBox & extend(const MatrixBase< Derived > &p)
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
EIGEN_DEVICE_FUNC AlignedBox(const OtherVectorType1 &_min, const OtherVectorType2 &_max)
EIGEN_DEVICE_FUNC AlignedBox(const AlignedBox< OtherScalarType, AmbientDimAtCompileTime > &other)
#define EIGEN_MAKE_TYPEDEFS_ALL_SIZES(Type, TypeSuffix)
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Point3 translation(const Pose3 &pose, OptionalJacobian< 3, 6 > H)
EIGEN_DEVICE_FUNC internal::cast_return_type< AlignedBox, AlignedBox< NewScalarType, AmbientDimAtCompileTime > >::type cast() const
EIGEN_DEVICE_FUNC Scalar squaredExteriorDistance(const MatrixBase< Derived > &p) const
EIGEN_DEVICE_FUNC AlignedBox translated(const MatrixBase< Derived > &a_t) const
Represents a translation transformation.
EIGEN_DEVICE_FUNC VectorType &() max()
EIGEN_DEVICE_FUNC bool contains(const AlignedBox &b) const
#define EIGEN_CONST_CONDITIONAL(cond)
EIGEN_DEVICE_FUNC AlignedBox(const MatrixBase< Derived > &p)
Base class for all dense matrices, vectors, and expressions.
EIGEN_DEVICE_FUNC AlignedBox(Index _dim)
EIGEN_DEVICE_FUNC AlignedBox()
EIGEN_DEVICE_FUNC Scalar volume() const
CwiseBinaryOp< internal::scalar_sum_op< Scalar >, const VectorType, const VectorType > VectorTypeSum
ScalarTraits::NonInteger NonInteger
const EIGEN_DEVICE_FUNC CwiseBinaryOp< internal::scalar_difference_op< Scalar, Scalar >, const VectorType, const VectorType > sizes() const
EIGEN_DEVICE_FUNC VectorType corner(CornerType corner) const
Jet< T, N > sqrt(const Jet< T, N > &f)
EIGEN_DEVICE_FUNC bool intersects(const AlignedBox &b) const
EIGEN_DEVICE_FUNC NonInteger exteriorDistance(const AlignedBox &b) const
#define EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(Scalar, Size)
EIGEN_DEVICE_FUNC NonInteger exteriorDistance(const MatrixBase< Derived > &p) const
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:31:52