Defines a bounding box by opposite corners (minimum and maximum point)
More...
#include <ptems/vector.hpp>
|
| BBox () |
| Create an undefined bounding box (has Maximum < Minimum) More...
|
|
| BBox (const Vector< DIM > &min, const Vector< DIM > &max) |
| Create a bounding box. More...
|
|
void | AddPoint (const Vector< DIM > &point) |
| Adds a point, expanding the bounding box as necessary. More...
|
|
Vector< DIM > | ToLocal (const Vector< 2 > &pt) |
| Convert a global coordinate to a local coordinate on the bounding box space \([-1,1]^D\). More...
|
|
template<std::size_t DIM>
struct ptems::BBox< DIM >
Defines a bounding box by opposite corners (minimum and maximum point)
- Template Parameters
-
DIM | The dimension of the space the bounding box is in |
◆ BBox() [1/2]
template<std::size_t DIM>
Create an undefined bounding box (has Maximum < Minimum)
◆ BBox() [2/2]
template<std::size_t DIM>
Create a bounding box.
- Parameters
-
min | Minimum point for the bounding box |
max | Maximum point for the bounding box |
◆ AddPoint()
template<std::size_t DIM>
Adds a point, expanding the bounding box as necessary.
- Parameters
-
point | Point to ensure inside bounding box |
◆ ToLocal()
template<std::size_t DIM>
Convert a global coordinate to a local coordinate on the bounding box space \([-1,1]^D\).
- Parameters
-
pt | The point in global space |
- Returns
- Point in local space defined by this bounding box
◆ Maximum
template<std::size_t DIM>
The maximum point of the bounding box.
◆ Minimum
template<std::size_t DIM>
The minimum point of the bounding box.
The documentation for this struct was generated from the following file: