Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

Sphere
[Geometric objects]


Classes

class  TSphere3< T >
 Generic Sphere Class. More...

Storers

Stream operators for the class Sphere

template<typename T>
std::istream & operator>> (std::istream &s, TSphere3< T > &sphere) throw ()
 Input operator.
template<typename T>
std::ostream & operator<< (std::ostream &s, const TSphere3< T > &sphere) throw ()
 Output Operator.

Typedefs

typedef TSphere3< float > Sphere3
 Default sphere type.

Typedef Documentation

typedef TSphere3<float> Sphere3
 

Default sphere type.

If double precision is not needed, TSphere3<float> should be used. It is predefined as Sphere3 for convenience.


Function Documentation

template<typename T>
std::ostream& operator<< std::ostream &  s,
const TSphere3< T > &  sphere
throw ()
 

Output Operator.

Write the contents of p and radius to an output stream. The values are enclose in brackets.

Example:
((0 1 1.5) 0.4)

template<typename T>
std::istream& operator>> std::istream &  s,
TSphere3< T > &  sphere
throw ()
 

Input operator.

Reads in an instance of TVector3 and a T value : p, radius.