#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 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. |
|
|
Returns the radius of the sphere.
Definition at line 62 of file OgreSphere.h. |
|
|
Returns whether or not this sphere interects a point.
Definition at line 90 of file OgreSphere.h. |
|
|
Returns whether or not this sphere interects a plane.
Definition at line 85 of file OgreSphere.h. |
|
|
Returns whether or not this sphere interects a box.
Definition at line 80 of file OgreSphere.h. |
|
|
Returns whether or not this sphere interects another sphere.
Definition at line 74 of file OgreSphere.h. |
|
|
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. |
|
|
Definition at line 49 of file OgreSphere.h. |
Copyright © 2000-2005 by The OGRE Team

This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Sep 30 10:53:30 2007