BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes
Three-dimensional vector.

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 
)

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

Definition at line 1121 of file vector3.h.

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

Addition operator for two vectors

Definition at line 821 of file vector4.h.

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

Subtraction operator for two vectors

Returns
TVector4 the new vector

Definition at line 831 of file vector4.h.

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

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 875 of file vector4.h.

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

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 1136 of file vector3.h.

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

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 861 of file vector4.h.

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

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 1127 of file vector3.h.