#include <mlSphere.h>
Public Member Functions | |
| Sphere () | |
| Constructor. Default is center at (0,0,0) and radius 0. | |
| Sphere (const Vector3 &c, double r) | |
| Constructor which defines a sphere with center point c and radius r. | |
| double | getRadius () const |
| Returns the current radius of the sphere. | |
| const Vector3 & | getCenter () const |
| Returns the current center of the sphere. | |
| void | setRadius (double r) |
| Set radius of the sphere to r. | |
| void | setCenter (const Vector3 &c) |
| Set center of the sphere to c. | |
Definition at line 25 of file mlSphere.h.
| ml::Sphere::Sphere | ( | ) | [inline] |
| ml::Sphere::Sphere | ( | const Vector3 & | c, | |
| double | r | |||
| ) | [inline] |
Constructor which defines a sphere with center point c and radius r.
Definition at line 33 of file mlSphere.h.
| const Vector3& ml::Sphere::getCenter | ( | ) | const [inline] |
| double ml::Sphere::getRadius | ( | ) | const [inline] |
| void ml::Sphere::setCenter | ( | const Vector3 & | c | ) | [inline] |
| void ml::Sphere::setRadius | ( | double | r | ) | [inline] |
1.5.8