#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 interects another sphere. | |
bool | intersects (const AxisAlignedBox &box) const |
Returns whether or not this sphere interects a box. | |
bool | intersects (const Plane &plane) const |
Returns whether or not this sphere interects a plane. | |
bool | intersects (const Vector3 &v) const |
Returns whether or not this sphere interects a point. | |
Protected Attributes | |
Real | mRadius |
Vector3 | mCenter |
Definition at line 42 of file OgreSphere.h.
|
Standard constructor - creates a unit sphere around the origin.
Definition at line 49 of file OgreSphere.h. |
|
Constructor allowing arbitrary spheres.
Definition at line 54 of file OgreSphere.h. References Ogre::Real. |
|
Returns the center point of the sphere.
Definition at line 64 of file OgreSphere.h. Referenced by Ogre::PlaneBoundedVolume::intersects(). |
|
Returns the radius of the sphere.
Definition at line 58 of file OgreSphere.h. References Ogre::Real. Referenced by Ogre::PlaneBoundedVolume::intersects(). |
|
Returns whether or not this sphere interects a point.
Definition at line 86 of file OgreSphere.h. |
|
Returns whether or not this sphere interects a plane.
Definition at line 81 of file OgreSphere.h. |
|
Returns whether or not this sphere interects a box.
Definition at line 76 of file OgreSphere.h. |
|
Returns whether or not this sphere interects another sphere.
Definition at line 70 of file OgreSphere.h. References Ogre::Vector3::length(), mCenter, and mRadius. |
|
Sets the center point of the sphere.
Definition at line 67 of file OgreSphere.h. |
|
Sets the radius of the sphere.
Definition at line 61 of file OgreSphere.h. References Ogre::Real. |
|
Definition at line 46 of file OgreSphere.h. Referenced by intersects(). |
|
Definition at line 45 of file OgreSphere.h. Referenced by intersects(). |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:44:36 2006