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

Quaternion
[Primitive datatypes]


Classes

class  TQuaternion< T >
 Generic Quaternion Class. More...

Storers

Stream operators for class Quaternion

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

Typedefs

typedef TQuaternion< float > Quaternion
 The Default TQuaternion Type.

Detailed Description


Typedef Documentation

typedef TQuaternion<float> Quaternion
 

The Default TQuaternion Type.

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


Function Documentation

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

Output Operator.

Write the values of the quaternion to an output stream. The values of i, j, k, and angle are written to an output stream. They are enclosed in brackets.

Example:
(0.32 0.45 0.12 1.0)
Parameters:
s the output stream
q the quaternion to write

template<typename T>
std::istream& operator>> std::istream &  s,
TQuaternion< T > &  q
throw ()
 

Input Operator.

Read the values of the quaternion from an input stream.

Parameters:
s the input stream
q the quaternion to read