![]() |
LibCarna Version 3.4.0
|
Defines a Geometry minimal boundary sphere. More...
#include <BoundingSphere.hpp>
Inheritance diagram for LibCarna::base::BoundingSphere:
Collaboration diagram for LibCarna::base::BoundingSphere:Public Member Functions | |
| BoundingSphere (float radius) | |
| Instantiates with radius. | |
| virtual | ~BoundingSphere () |
| Deletes. | |
| float | radius () const |
| Tells the radius of this bounding sphere. | |
| void | setRadius (float radius) |
| Sets the radius of this bounding sphere. | |
| 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 sphere.
Definition at line 43 of file BoundingSphere.hpp.
| LibCarna::base::BoundingSphere::BoundingSphere | ( | float | radius | ) |
Instantiates with radius.
radius > 0
|
overridevirtual |
Computes the point out in model space that is close-most to reference, that is also in model space.
Implements LibCarna::base::BoundingVolume.
| float LibCarna::base::BoundingSphere::radius | ( | ) | const |
Tells the radius of this bounding sphere.
radius() > 0 Sets the radius of this bounding sphere.
radius > 0 Written by Leonid Kostrykin © 2021–2025. Based on Carna (© 2010-2016).
Documentation generated by Doxygen