BoundSphere Class
This class serves to construct the bounding sphere in single precision coordinates.
Instances of this class are deleted automatically when it is necessary.
In case of double precision coordinates, the bounding sphere should be constructed by using the WorldBoundSphere class. It includes the same functions as the BoundSphere class, but its functions deal with the double precision coordinates.
To support both single and double precision builds, you can use the WorldBoundSphere class only. The engine will automatically substitute it with the BoundSphere if it is required.
BoundSphere Class
Members
BoundSphere ( ) #
Constructor. Creates an empty bounding sphere.const vec3 & getCenter ( ) # const
Returns the bounding sphere center.Return value
The bounding sphere center.float getRadius ( ) # const
Returns the bounding sphere radius.Return value
The bounding sphere radius.int isValid ( ) # const
Checks the bounding sphere status.Return value
1 if the bounding sphere radius has a positive value; otherwise, 0.Last update:
2019-08-16
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)