Three-dimensional vector.
[Primitive datatypes]

Classes

class  BALL::TVector3< T >

Global binary operators for three-dimensional vectors.



template<typename T >
BALL_INLINE TVector3< T > BALL::operator* (const T &a, const TVector3< T > &b)
template<typename T >
std::istream & BALL::operator>> (std::istream &s, TVector3< T > &vector)
template<typename T >
std::ostream & BALL::operator<< (std::ostream &s, const TVector3< T > &vector)
template<typename T >
BALL_INLINE TVector4< T > BALL::operator+ (const TVector4< T > &a, const TVector4< T > &b)
template<typename T >
BALL_INLINE TVector4< T > BALL::operator- (const TVector4< T > &a, const TVector4< T > &b)
template<typename T >
std::istream & BALL::operator>> (std::istream &s, TVector4< T > &vector)
template<typename T >
std::ostream & BALL::operator<< (std::ostream &s, const TVector4< T > &vector)

Detailed Description

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


Function Documentation

template<typename T >
BALL_INLINE TVector3< T > BALL::operator* ( const T &  a,
const TVector3< T > &  b 
) [inline]

Multiply a vector with a scalar. The symmetric case is a member of the vector class.

Definition at line 1143 of file vector3.h.

template<typename T >
BALL_INLINE TVector4< T > BALL::operator+ ( const TVector4< T > &  a,
const TVector4< T > &  b 
) [inline]

Addition operator for two vectors

Definition at line 879 of file vector4.h.

template<typename T >
BALL_INLINE TVector4< T > BALL::operator- ( const TVector4< T > &  a,
const TVector4< T > &  b 
) [inline]

Subtraction operator for two vectors

Returns:
TVector4 the new vector

Definition at line 890 of file vector4.h.

template<typename T >
std::ostream & BALL::operator<< ( std::ostream &  s,
const TVector4< T > &  v 
) [inline]

Output Operator. Write the four components of the vector to an output stream. The values are enclosed by brackets.

Example:
(0.1 2.0 0 1)

Definition at line 939 of file vector4.h.

template<typename T >
std::ostream & BALL::operator<< ( std::ostream &  s,
const TVector3< T > &  vector 
) [inline]

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.

Definition at line 1158 of file vector3.h.

template<typename T >
std::istream & BALL::operator>> ( std::istream &  s,
TVector4< T > &  v 
) [inline]

Input operator Reads four values of type T from an input stream and assigns them to the components x, y, z and h of the vector.

Definition at line 924 of file vector4.h.

template<typename T >
std::istream & BALL::operator>> ( std::istream &  s,
TVector3< T > &  vector 
) [inline]

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.

Definition at line 1149 of file vector3.h.

Generated by  doxygen 1.6.3