omegalib
13.1
|
A sphere primitive, mostly used for bounds checking. More...
#include <Sphere.h>
Public Member Functions | |
Sphere () | |
Standard constructor - creates a unit sphere around the origin. More... | |
Sphere (const Vector3f ¢er, real radius) | |
Constructor allowing arbitrary spheres. More... | |
real | getRadius (void) const |
Returns the radius of the sphere. More... | |
void | setRadius (real radius) |
Sets the radius of the sphere. More... | |
const Vector3f & | getCenter (void) const |
Returns the center point of the sphere. More... | |
void | setCenter (const Vector3f ¢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 AlignedBox3 &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 Vector3f &v) const |
Returns whether or not this sphere intersects a point. More... | |
Protected Attributes | |
real | mRadius |
Vector3f | mCenter |
A sphere primitive, mostly used for bounds checking.
|
inline |
Standard constructor - creates a unit sphere around the origin.
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.
|
protected |
|
protected |