My Project
|
A sphere primitive, mostly used for bounds checking. More...
#include <ParaSphere.h>
Public Member Functions | |
Sphere () | |
Standard constructor - creates a unit sphere around the origin. More... | |
Sphere (const Vector3 ¢er, float radius) | |
Constructor allowing arbitrary spheres. More... | |
float | getRadius (void) const |
Returns the radius of the sphere. More... | |
void | setRadius (float radius) |
Sets the radius of the sphere. More... | |
const Vector3 & | getCenter (void) const |
Returns the center point of the sphere. More... | |
void | setCenter (const Vector3 ¢er) |
Sets the center point of the sphere. More... | |
bool | intersects (const Sphere &s) const |
Returns whether or not this sphere intersects another sphere. More... | |
bool | intersects (const AxisAlignedBox &box) const |
Returns whether or not this sphere intersects a box. More... | |
bool | intersects (const Plane &plane) const |
Returns whether or not this sphere intersects a plane. More... | |
bool | intersects (const Vector3 &v) const |
Returns whether or not this sphere intersects a point. More... | |
Protected Attributes | |
float | mRadius |
Vector3 | mCenter |
A sphere primitive, mostly used for bounds checking.
|
inline |
Standard constructor - creates a unit sphere around the origin.
|
inline |
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.
|
inline |
Returns the radius of the sphere.
|
inline |
Returns whether or not this sphere intersects another sphere.
|
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 a point.
|
inline |
Sets the center point of the sphere.
|
inline |
Sets the radius of the sphere.