#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. | |
Real | getRadius (void) const |
Returns the radius of the sphere. | |
void | setRadius (Real radius) |
Sets the radius of the sphere. | |
const Vector3 & | getCenter (void) const |
Returns the center point of the sphere. | |
void | setCenter (const Vector3 ¢er) |
Sets the center point of the sphere. | |
bool | intersects (const Sphere &s) const |
Returns whether or not this sphere intersects another 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 Vector3 &v) const |
Returns whether or not this sphere intersects a point. | |
Protected Attributes | |
Real | mRadius |
Vector3 | mCenter |
Definition at line 46 of file OgreSphere.h.
|
Standard constructor - creates a unit sphere around the origin.
Definition at line 53 of file OgreSphere.h. |
|
Constructor allowing arbitrary spheres.
Definition at line 58 of file OgreSphere.h. |
|
Returns the center point of the sphere.
Definition at line 68 of file OgreSphere.h. Referenced by Ogre::VisibleObjectsBoundsInfo::merge(). |
|
Returns the radius of the sphere.
Definition at line 62 of file OgreSphere.h. Referenced by Ogre::VisibleObjectsBoundsInfo::merge(). |
|
Returns whether or not this sphere intersects a point.
Definition at line 90 of file OgreSphere.h. References Ogre::Math::Sqr(). |
|
Returns whether or not this sphere intersects a plane.
Definition at line 85 of file OgreSphere.h. References Ogre::Math::intersects(). |
|
Returns whether or not this sphere intersects a box.
Definition at line 80 of file OgreSphere.h. References Ogre::Math::intersects(). |
|
Returns whether or not this sphere intersects another sphere.
Definition at line 74 of file OgreSphere.h. References mCenter, mRadius, and Ogre::Math::Sqr(). |
|
Sets the center point of the sphere.
Definition at line 71 of file OgreSphere.h. |
|
Sets the radius of the sphere.
Definition at line 65 of file OgreSphere.h. |
|
Definition at line 50 of file OgreSphere.h. Referenced by intersects(). |
|
Definition at line 49 of file OgreSphere.h. Referenced by intersects(). |
Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sat Apr 11 13:54:53 2009