Carna  Version 3.3.2
Public Member Functions | List of all members
Carna::base::BoundingSphere Class Reference

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::Matrix4ftransform () 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::Matrix4finverseTransform () const
 Tells the transform from the model space of the Geometry object that uses this bounding volume to its local coordinate system.
 

Detailed Description

Defines a Geometry minimal boundary sphere.

Author
Leonid Kostrykin
Date
22.3.15

Definition at line 40 of file BoundingSphere.h.

Constructor & Destructor Documentation

◆ BoundingSphere()

Carna::base::BoundingSphere::BoundingSphere ( float  radius)

Instantiates with radius.

Precondition
radius > 0

Member Function Documentation

◆ radius()

float Carna::base::BoundingSphere::radius ( ) const

Tells the radius of this bounding sphere.

Postcondition
radius() > 0

◆ setRadius()

void Carna::base::BoundingSphere::setRadius ( float  radius)

Sets the radius of this bounding sphere.

Precondition
radius > 0

The documentation for this class was generated from the following file: