#include <Sphere.h>
Collaboration diagram for gmtl::Sphere:

Public Types | |
| typedef DATA_TYPE | DataType |
Public Methods | |
| Sphere () | |
| Constructs a sphere centered at the origin with a radius of 0. More... | |
| Sphere (const Point< DATA_TYPE, 3 > ¢er, const DATA_TYPE &radius) | |
| Constructs a sphere with the given center and radius. More... | |
| Sphere (const Sphere< DATA_TYPE > &sphere) | |
| Constructs a duplicate of the given sphere. More... | |
| const Point< DATA_TYPE, 3 > & | getCenter () const |
| Gets the center of the sphere. More... | |
| const DATA_TYPE & | getRadius () const |
| Gets the radius of the sphere. More... | |
| void | setCenter (const Point< DATA_TYPE, 3 > ¢er) |
| Sets the center point of the sphere. More... | |
| void | setRadius (const DATA_TYPE &radius) |
| Sets the radius of the sphere. More... | |
Public Attributes | |
| Point< DATA_TYPE, 3 > | mCenter |
| The center of the sphere. More... | |
| DATA_TYPE | mRadius |
| The radius of the sphere. More... | |
| DATA_TYPE | the internal type used for the point and radius |
Definition at line 50 of file Sphere.h.
|
|||||
|
|
|
|||||||||
|
Constructs a sphere centered at the origin with a radius of 0.
Definition at line 59 of file Sphere.h. References mRadius.
00060 : mRadius( 0 ) 00061 {} |
|
||||||||||||||||
|
Constructs a sphere with the given center and radius.
Definition at line 69 of file Sphere.h. References gmtl::center, mCenter, and mRadius.
|
|
||||||||||
|
Constructs a duplicate of the given sphere.
Definition at line 78 of file Sphere.h. References mCenter, and mRadius.
|
|
|||||||||
|
Gets the center of the sphere.
Definition at line 87 of file Sphere.h. References mCenter.
00088 {
00089 return mCenter;
00090 }
|
|
|||||||||
|
Gets the radius of the sphere.
Definition at line 97 of file Sphere.h. References mRadius.
00098 {
00099 return mRadius;
00100 }
|
|
||||||||||
|
Sets the center point of the sphere.
Definition at line 107 of file Sphere.h. References gmtl::center, and mCenter.
|
|
||||||||||
|
Sets the radius of the sphere.
Definition at line 117 of file Sphere.h. References mRadius.
00118 {
00119 mRadius = radius;
00120 }
|
|
|||||
|
The center of the sphere.
|
|
|||||
|
The radius of the sphere.
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002