Carna
Version 3.3.2
|
Defines a Geometry minimal boundary box. More...
#include <BoundingBox.h>
Public Member Functions | |
BoundingBox (const math::Vector3f &size) | |
Instantiates bounding box of size. More... | |
BoundingBox (float width, float height, float depth) | |
virtual | ~BoundingBox () |
Deletes. | |
const math::Vector3f & | size () const |
Tells the size of this bounding box. More... | |
void | setSize (const math::Vector3f &size) |
Changes the size of this bounding box. More... | |
void | setSize (float width, float height, float depth) |
virtual void | computeClosemostPoint (math::Vector3f &out, const math::Vector3f &reference) const override |
Computes the point out in model space that is close-most to reference, that is also in model space. | |
![]() | |
BoundingVolume () | |
Instantiates. | |
virtual | ~BoundingVolume () |
Deletes. | |
void | setTransform (const math::Matrix4f &transform) |
Sets the transform from the local coordinate system of this bounding volume to the Geometry object that uses it. | |
const math::Matrix4f & | transform () const |
Tells the transform from the local coordinate system of this bounding volume to the model space of the Geometry object that uses it. | |
const math::Matrix4f & | inverseTransform () const |
Tells the transform from the model space of the Geometry object that uses this bounding volume to its local coordinate system. | |
Carna::base::BoundingBox::BoundingBox | ( | const math::Vector3f & | size | ) |
Instantiates bounding box of size.
size.x() > 0 && size.y() > 0 && size.z() > 0
Carna::base::BoundingBox::BoundingBox | ( | float | width, |
float | height, | ||
float | depth | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void Carna::base::BoundingBox::setSize | ( | const math::Vector3f & | size | ) |
Changes the size of this bounding box.
size.x() > 0 && size.y() > 0 && size.z() > 0
void Carna::base::BoundingBox::setSize | ( | float | width, |
float | height, | ||
float | depth | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
const math::Vector3f& Carna::base::BoundingBox::size | ( | ) | const |
Tells the size of this bounding box.
size.x() > 0 && size.y() > 0 && size.z() > 0
Documentation generated by Doxygen