Carna Version 3.3.3
Loading...
Searching...
No Matches
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.
 
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 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

◆ computeClosemostPoint()

virtual void Carna::base::BoundingSphere::computeClosemostPoint ( math::Vector3f out,
const math::Vector3f reference 
) const
overridevirtual

Computes the point out in model space that is close-most to reference, that is also in model space.

Implements Carna::base::BoundingVolume.

◆ 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: