|
Carna
Version 3.0.1
|
Defines a Geometry minimal boundary sphere. More...
#include <BoundingSphere.h>
Inheritance diagram for Carna::base::BoundingSphere:
Collaboration diagram for Carna::base::BoundingSphere:Public Member Functions | |
| BoundingSphere (float radius) | |
| Instantiates with radius. More... | |
| virtual | ~BoundingSphere () |
| Deletes. | |
| float | radius () const |
| Tells the radius of this bounding sphere. More... | |
| void | setRadius (float radius) |
| Sets the radius of this bounding sphere. More... | |
| 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 Carna::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 40 of file BoundingSphere.h.
| Carna::base::BoundingSphere::BoundingSphere | ( | float | radius | ) |
Instantiates with radius.
radius > 0 | float Carna::base::BoundingSphere::radius | ( | ) | const |
Tells the radius of this bounding sphere.
radius() > 0 | void Carna::base::BoundingSphere::setRadius | ( | float | radius | ) |
Sets the radius of this bounding sphere.
radius > 0 Documentation generated by Doxygen