Three-dimensional vector.
[Primitive datatypes]

Representation of points and vectors in three-dimensional space: class TVector3 and class Vector3 . More...
Collaboration diagram for Three-dimensional vector.:

Classes

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

Global binary operators for three-dimensional vectors.

template<typename T >
TVector3< T > BALL::operator* (const T &a, const TVector3< T > &b)
Multiply a vector with a scalar.
template<typename T >
std::istream & BALL::operator>> (std::istream &s, TVector3< T > &vector)
Input operator.
template<typename T >
std::ostream & BALL::operator<< (std::ostream &s, const TVector3< T > &vector)
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 > 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.

References BALL::TVector3< T >::x, BALL::TVector3< T >::y, and BALL::TVector3< T >::z.

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.

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.

References BALL::TVector3< T >::x, BALL::TVector3< T >::y, and BALL::TVector3< T >::z.


Generated on Thu Aug 6 18:30:01 2009 for BALL by doxygen 1.5.8