#include <BoundingBox.hpp>
◆ BoundingBox() [1/2]
CU_API castor::BoundingBox::BoundingBox |
( |
| ) |
|
|
default |
◆ BoundingBox() [2/2]
CU_API castor::BoundingBox::BoundingBox |
( |
Point3f const & | min, |
|
|
Point3f const & | max ) |
Constructor from min and max extents.
- Parameters
-
[in] | min | The min extent. |
[in] | max | The max extent. |
◆ getAxisAligned()
CU_API BoundingBox castor::BoundingBox::getAxisAligned |
( |
Matrix4x4f const & | transformations | ) |
const |
Retrieves the axis aligned cube box for given tranformations.
- Parameters
-
[in] | transformations | The transformation matrix. |
◆ getDimensions()
Point3f const & castor::BoundingBox::getDimensions |
( |
| ) |
const |
|
inline |
◆ getMax()
Point3f castor::BoundingBox::getMax |
( |
| ) |
const |
|
inline |
◆ getMin()
Point3f castor::BoundingBox::getMin |
( |
| ) |
const |
|
inline |
◆ getNegativeVertex()
CU_API Point3f castor::BoundingBox::getNegativeVertex |
( |
Point3f const & | normal | ) |
const |
Computes the negative vertex of a direction.
- Parameters
-
[in] | normal | The direction vector. |
- Returns
- The position of the vertex on the box in the opposite way from the normal, while considering the center.
◆ getPositiveVertex()
CU_API Point3f castor::BoundingBox::getPositiveVertex |
( |
Point3f const & | normal | ) |
const |
Computes the positive vertex of a direction.
- See also
- getNegativeVertex.
- Parameters
-
[in] | normal | The direction vector. |
- Returns
- The position of the vertex on the box in the same way as the normal, while considering the center.
◆ getUnion()
Computes the bounding box resulting of the union of this bounding box and given one.
- Parameters
-
[in] | bb | The other bounding box. |
- Returns
- The resulting bounding box.
◆ isOnLimits()
CU_API bool castor::BoundingBox::isOnLimits |
( |
Point3f const & | point | ) |
const |
|
override |
Tests if a vertex is on the limits of this container, and not within.
- Parameters
-
[in] | point | The vertex to test. |
- Returns
true
if the vertex is on the limits of the container, false if not.
◆ isWithin()
CU_API bool castor::BoundingBox::isWithin |
( |
Point3f const & | point | ) |
const |
|
override |
Tests if a vertex is within the container, id est inside it but not on it's limits.
- Parameters
-
[in] | point | The vertex to test. |
- Returns
true
if the vertex is within the container, false if not.
◆ load()
CU_API void castor::BoundingBox::load |
( |
Point3f const & | min, |
|
|
Point3f const & | max ) |
Reinitialises the combo box to the given limits.
- Parameters
-
[in] | min | The min extent. |
[in] | max | The max extent. |
The documentation for this class was generated from the following file: