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

Three-dimensional vector.
[Primitive datatypes]

Representation of points and vectors in three-dimensional space: class TVector3 and class Vector3 . More...

Classes

class  TVector3< T >
 Generic Three-Dimensional Vector. More...

Global binary operators for three-dimensional vectors.

template<typename T>
TVector3< T > operator * (const T &a, const TVector3< T > &b) throw ()
 Multiply a vector with a scalar.
template<typename T>
std::istream & operator>> (std::istream &s, TVector3< T > &vector) throw ()
 Input operator.
template<typename T>
std::ostream & operator<< (std::ostream &s, const TVector3< T > &vector) throw ()
 Output operator.

Detailed Description

Representation of points and vectors in three-dimensional space: class TVector3 and class Vector3 .


Function Documentation

template<typename T>
TVector3< T > operator * const T &  a,
const TVector3< T > &  b
throw ()
 

Multiply a vector with a scalar.

The symmetric case is a member of the vector class.

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

Output operator.

Writes the values of three vector components of type T to an ostream. The components are writen in the order of x, y, z.

template<typename T>
std::istream & operator>> std::istream &  s,
TVector3< T > &  vector
throw ()
 

Input operator.

Reads the values of three vector components of type T from an istream. The components are read in the order of x, y, z.