OGRE
1.9.0
|
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 (void) const |
Returns the center point of the sphere. | |
Real | getRadius (void) 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. | |
Protected Attributes | |
Vector3 | mCenter |
Real | mRadius |
A sphere primitive, mostly used for bounds checking.
Definition at line 51 of file OgreSphere.h.
Ogre::Sphere::Sphere | ( | ) |
Standard constructor - creates a unit sphere around the origin.
Definition at line 58 of file OgreSphere.h.
Constructor allowing arbitrary spheres.
center | The center point of the sphere. |
radius | The radius of the sphere. |
Definition at line 63 of file OgreSphere.h.
Returns the center point of the sphere.
Definition at line 73 of file OgreSphere.h.
Returns the radius of the sphere.
Definition at line 67 of file OgreSphere.h.
bool Ogre::Sphere::intersects | ( | const AxisAlignedBox & | box | ) | const |
Returns whether or not this sphere intersects a box.
Definition at line 85 of file OgreSphere.h.
Returns whether or not this sphere intersects a plane.
Definition at line 90 of file OgreSphere.h.
Returns whether or not this sphere intersects another sphere.
Definition at line 79 of file OgreSphere.h.
Returns whether or not this sphere intersects a point.
Definition at line 95 of file OgreSphere.h.
Merges another Sphere into the current sphere.
Definition at line 100 of file OgreSphere.h.
Sets the center point of the sphere.
Definition at line 76 of file OgreSphere.h.
Sets the radius of the sphere.
Definition at line 70 of file OgreSphere.h.
|
protected |
Definition at line 55 of file OgreSphere.h.
|
protected |
Definition at line 54 of file OgreSphere.h.