Isle
Loading...
Searching...
No Matches
BoundingSphere Class Reference

[AI] Represents a bounding sphere in 3D space with center and radius. More...

#include <roi.h>

Public Member Functions

const Vector3Center () const
 [AI] Const accessor for the center of the sphere. More...
 
Vector3Center ()
 [AI] Non-const accessor for the center of the sphere. More...
 
const float & Radius () const
 [AI] Const accessor for the sphere radius. More...
 
float & Radius ()
 [AI] Non-const accessor for the sphere radius. More...
 

Detailed Description

[AI] Represents a bounding sphere in 3D space with center and radius.

[AI] Used for fast object intersection tests, e.g. for culling or selecting objects in the world.

Definition at line 56 of file roi.h.

Member Function Documentation

◆ Center() [1/2]

Vector3 & BoundingSphere::Center ( )
inline

[AI] Non-const accessor for the center of the sphere.

Returns
Reference to the center point [AI]

Definition at line 67 of file roi.h.

◆ Center() [2/2]

const Vector3 & BoundingSphere::Center ( ) const
inline

[AI] Const accessor for the center of the sphere.

Returns
Reference to the center point [AI]

Definition at line 62 of file roi.h.

◆ Radius() [1/2]

float & BoundingSphere::Radius ( )
inline

[AI] Non-const accessor for the sphere radius.

Returns
Reference to the radius value [AI]

Definition at line 77 of file roi.h.

◆ Radius() [2/2]

const float & BoundingSphere::Radius ( ) const
inline

[AI] Const accessor for the sphere radius.

Returns
Reference to the radius value [AI]

Definition at line 72 of file roi.h.


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