Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csSphere Class Reference

This class represents a sphere. More...

#include <sphere.h>

List of all members.

Public Methods

 csSphere ()
 Create a new empty sphere at (0,0,0).

 csSphere (const csVector3 &center, float radius)
 Create a new sphere.

 csSphere (const csSphere &s)
 Copy Constructor.

csVector3GetCenter ()
 Get the center of this sphere.

const csVector3GetCenter () const
 Get the center of this sphere.

void SetCenter (const csVector3 &c)
 Set the center of this sphere.

float GetRadius () const
 Get the radius of this sphere.

void SetRadius (float r)
 Set the radius of this sphere.

void Union (const csVector3 &ocenter, float oradius)
 Calculate the union of this sphere and another.

csSphere& operator+= (const csSphere &s)
 Calculate the union of this sphere and another one.


Friends

csSphere operator+ (const csSphere &s1, const csSphere &s2)
 Calculate the union of two spheres.


Detailed Description

This class represents a sphere.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000