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. | |
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. | |
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.
Constructor which defines a sphere with center point c and radius r.
Definition at line 36 of file mlSphere.h.
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.
Set center of the sphere to c.
Definition at line 48 of file mlSphere.h.
Set radius of the sphere to r.
Definition at line 45 of file mlSphere.h.