|
PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
Axis-aligned bounding box class. More...
#include <AxisAlignedBoundingBox.h>
Public Types | |
| using | BaseType = Eigen::AlignedBox<Scalar, Dims> |
| Base type. | |
| using | SelfType = AxisAlignedBoundingBox |
| Self type. | |
Public Member Functions | |
| AxisAlignedBoundingBox (BaseType const &box) | |
| Copy construct AxisAlignedBoundingBox from Eigen::AlignedBox. | |
| AxisAlignedBoundingBox (BaseType &&box) | |
| Move construct AxisAlignedBoundingBox from Eigen::AlignedBox. | |
| AxisAlignedBoundingBox & | operator= (BaseType const &box) |
| Copy assign AxisAlignedBoundingBox from Eigen::AlignedBox. | |
| AxisAlignedBoundingBox & | operator= (BaseType &&box) |
| Move assign AxisAlignedBoundingBox from Eigen::AlignedBox. | |
| template<class TDerivedMin, class TDerivedMax> | |
| AxisAlignedBoundingBox (Eigen::DenseBase< TDerivedMin > const &min, Eigen::DenseBase< TDerivedMax > const &max) | |
| Construct AxisAlignedBoundingBox from min and max endpoints. | |
| template<class TDerived> | |
| AxisAlignedBoundingBox (Eigen::DenseBase< TDerived > const &P) | |
| Construct AxisAlignedBoundingBox over a set of points. | |
| template<class TDerived> | |
| std::vector< Index > | contained (Eigen::MatrixBase< TDerived > const &P) const |
| Get indices of points in P contained in the bounding box. | |
Static Public Attributes | |
| static auto constexpr | kDims = Dims |
| Number of dimensions. | |
Axis-aligned bounding box class.
| Dims | Number of dimensions |
|
inline |
Copy construct AxisAlignedBoundingBox from Eigen::AlignedBox.
| box | Eigen::AlignedBox |
|
inline |
Move construct AxisAlignedBoundingBox from Eigen::AlignedBox.
| box | Eigen::AlignedBox |
|
inline |
Construct AxisAlignedBoundingBox from min and max endpoints.
| TDerivedMin | Eigen dense expression type |
| TDerivedMax | Eigen dense expression type |
| min | Min endpoint |
| max | Max endpoint |
min.rows() == Dims and max.rows() == Dims
|
inline |
Construct AxisAlignedBoundingBox over a set of points.
| TDerived | Eigen dense expression type |
| P | Points |
P.rows() == Dims
|
inline |
Get indices of points in P contained in the bounding box.
| TDerived | Eigen dense expression type |
| P | Points |
|
inline |
Move assign AxisAlignedBoundingBox from Eigen::AlignedBox.
| box | Eigen::AlignedBox |
|
inline |
Copy assign AxisAlignedBoundingBox from Eigen::AlignedBox.
| box | Eigen::AlignedBox |