OESphereBase

OESphereBase class represents a sphere.

The following free functions take OESphereBase.

OESphereVolume

OESphereArea

OEInSphere

Destructor

virtual ~OESphereBase() {}

Destructor.

operator=

OESphereBase& operator=(const OESphereBase& rhs)

Assignment operator.

GetX

virtual float GetX() const  = 0

Returns the X coordinate of the center of the sphere

GetY

virtual float GetY() const  = 0

Returns the Y coordinate of the center of the sphere

GetZ

virtual float GetZ() const  = 0

Return the Z coordinate of the center of the sphere

GetRad

virtual float GetRad() const  = 0

Returns the radius of the sphere

SetRad

virtual bool SetRad(float rad)  = 0

Sets the radius of the sphere to rad. Will fail and return false if rad < 0.

SetCenter

virtual bool SetCenter(float x,
                       float y,
                       float z)  = 0

Sets the center of the sphere.