BoundSphere Class
This class serves to construct the bounding sphere in single precision coordinates.
Notice
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.
Notice
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.vec3 getCenter() const
Gets the bounding sphere center.Return value
The bounding sphere center.float getRadius() const
Gets 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.Last update: 2017-07-03
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)