Sphere class.
More...
#include <Sphere.h>
List of all members.
Public Member Functions |
PLMATH_API | Sphere () |
| Default constructor setting all position components and the radius to 0.
|
PLMATH_API | Sphere (const Sphere &cSource) |
| Copy constructor.
|
PLMATH_API | ~Sphere () |
| Destructor.
|
PLMATH_API Sphere & | operator= (const Sphere &cSource) |
| Copy operator.
|
PLMATH_API float | GetRadius () const |
| Returns the radius of the sphere.
|
PLMATH_API void | SetRadius (float fRadius=0.0f) |
| Sets the radius of the sphere.
|
PLMATH_API const Vector3 & | GetPos () const |
| Returns the current position.
|
PLMATH_API void | SetPos (float fX=0.0f, float fY=0.0f, float fZ=0.0f) |
| Set the current position.
|
PLMATH_API void | SetPos (const Vector3 &vPos) |
| Set the current position.
|
Detailed Description
Constructor & Destructor Documentation
Default constructor setting all position components and the radius to 0.
Copy constructor.
- Parameters:
-
[in] | cSource | Source to copy from |
Member Function Documentation
PLMATH_API Sphere& PLMath::Sphere::operator= |
( |
const Sphere & |
cSource | ) |
|
Copy operator.
- Parameters:
-
[in] | cSource | Source to copy from |
- Returns:
- Reference to this instance
Returns the radius of the sphere.
- Returns:
- Sphere radius
Sets the radius of the sphere.
- Parameters:
-
Returns the current position.
- Returns:
- Current position
Set the current position.
- Parameters:
-
[in] | fX | X component of the new position |
[in] | fY | Y component of the new position |
[in] | fZ | Z component of the new position |
Set the current position.
- Parameters:
-
The documentation for this class was generated from the following file: