|  | OGRE-Next 3.0.0
    Object-Oriented Graphics Rendering Engine | 
A sphere primitive, mostly used for bounds checking. More...
#include <OgreSphere.h>
| Public Member Functions | |
| Sphere () | |
| Standard constructor - creates a unit sphere around the origin. | |
| Sphere (const Vector3 ¢er, Real radius) | |
| Constructor allowing arbitrary spheres. | |
| const Vector3 & | getCenter () const | 
| Returns the center point of the sphere. | |
| Real | getRadius () const | 
| Returns the radius of the sphere. | |
| bool | intersects (const AxisAlignedBox &box) const | 
| Returns whether or not this sphere intersects a box. | |
| bool | intersects (const Plane &plane) const | 
| Returns whether or not this sphere intersects a plane. | |
| bool | intersects (const Sphere &s) const | 
| Returns whether or not this sphere intersects another sphere. | |
| bool | intersects (const Vector3 &v) const | 
| Returns whether or not this sphere intersects a point. | |
| void | merge (const Sphere &oth) | 
| Merges another Sphere into the current sphere. | |
| void | setCenter (const Vector3 ¢er) | 
| Sets the center point of the sphere. | |
| void | setRadius (Real radius) | 
| Sets the radius of the sphere. | |
A sphere primitive, mostly used for bounds checking.
| 
 | inline | 
Standard constructor - creates a unit sphere around the origin.
Constructor allowing arbitrary spheres.
| center | The center point of the sphere. | 
| radius | The radius of the sphere. | 
| 
 | inline | 
Returns the center point of the sphere.
Referenced by Ogre::PlaneBoundedVolume::intersects(), merge(), Ogre::ArraySphere::setAll(), and Ogre::ArraySphere::setFromSphere().
| 
 | inline | 
Returns the radius of the sphere.
Referenced by Ogre::PlaneBoundedVolume::intersects(), merge(), Ogre::ArraySphere::setAll(), and Ogre::ArraySphere::setFromSphere().
| 
 | inline | 
Returns whether or not this sphere intersects a box.
| 
 | inline | 
Returns whether or not this sphere intersects a plane.
| 
 | inline | 
Returns whether or not this sphere intersects another sphere.
| 
 | inline | 
Returns whether or not this sphere intersects a point.
| 
 | inline | 
Merges another Sphere into the current sphere.
References getCenter(), getRadius(), and Ogre::Vector3::squaredLength().
| 
 | inline | 
Sets the center point of the sphere.
Referenced by Ogre::ArraySphere::getAsSphere().
| 
 | inline | 
Sets the radius of the sphere.
Referenced by Ogre::ArraySphere::getAsSphere().