![]() |
LibCarna Version 3.4.0
|
Defines a Geometry minimal boundary box. More...
#include <BoundingBox.hpp>
Inheritance diagram for LibCarna::base::BoundingBox:
Collaboration diagram for LibCarna::base::BoundingBox:Public Member Functions | |
| BoundingBox (const math::Vector3f &size) | |
| Instantiates bounding box of size. | |
| BoundingBox (float width, float height, float depth) | |
| virtual | ~BoundingBox () |
| Deletes. | |
| const math::Vector3f & | size () const |
| Tells the size of this bounding box. | |
| void | setSize (const math::Vector3f &size) |
| Changes the size of this bounding box. | |
| 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. | |
Public Member Functions inherited from LibCarna::base::BoundingVolume | |
| 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. | |
Defines a Geometry minimal boundary box.
Definition at line 43 of file BoundingBox.hpp.
| LibCarna::base::BoundingBox::BoundingBox | ( | const math::Vector3f & | size | ) |
Instantiates bounding box of size.
size.x() > 0 && size.y() > 0 && size.z() > 0 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
overridevirtual |
Computes the point out in model space that is close-most to reference, that is also in model space.
Implements LibCarna::base::BoundingVolume.
| void LibCarna::base::BoundingBox::setSize | ( | const math::Vector3f & | size | ) |
Changes the size of this bounding box.
size.x() > 0 && size.y() > 0 && size.z() > 0 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 & LibCarna::base::BoundingBox::size | ( | ) | const |
Tells the size of this bounding box.
size.x() > 0 && size.y() > 0 && size.z() > 0 Written by Leonid Kostrykin © 2021–2025. Based on Carna (© 2010-2016).
Documentation generated by Doxygen