MeVisLab Toolbox Reference
|
Defines the class to handle the geometry primitive "Sphere" with a radius and a center point. More...
#include <mlSphere.h>
Public Member Functions | |
Sphere () | |
Constructor. Default is center at (0,0,0) and radius 0. More... | |
Sphere (const Vector3 &c, double r) | |
Constructor which defines a sphere with center point c and radius r. More... | |
double | getRadius () const |
Returns the current radius of the sphere. More... | |
const Vector3 & | getCenter () const |
Returns the current center of the sphere. More... | |
void | setRadius (double r) |
Set radius of the sphere to r. More... | |
void | setCenter (const Vector3 &c) |
Set center of the sphere to c. More... | |
Defines the class to handle the geometry primitive "Sphere" with a radius and a center point.
Definition at line 28 of file mlSphere.h.
|
inline |
Constructor. Default is center at (0,0,0) and radius 0.
Definition at line 32 of file mlSphere.h.
|
inline |
Constructor which defines a sphere with center point c and radius r.
Definition at line 36 of file mlSphere.h.
|
inline |
Returns the current center of the sphere.
Definition at line 42 of file mlSphere.h.
|
inline |
Returns the current radius of the sphere.
Definition at line 39 of file mlSphere.h.
|
inline |
Set center of the sphere to c.
Definition at line 48 of file mlSphere.h.
|
inline |
Set radius of the sphere to r.
Definition at line 45 of file mlSphere.h.