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) |
Representation of points and vectors in three-dimensional space: class TVector3 and class Vector3
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.
References BALL::TVector3< T >::x, BALL::TVector3< T >::y, and BALL::TVector3< T >::z.
BALL_INLINE TVector4< T > BALL::operator+ | ( | const TVector4< T > & | a, | |
const TVector4< T > & | b | |||
) | [inline] |
Addition operator for two vectors
References BALL::TVector4< T >::h, BALL::TVector4< T >::x, BALL::TVector4< T >::y, and BALL::TVector4< T >::z.
BALL_INLINE TVector4< T > BALL::operator- | ( | const TVector4< T > & | a, | |
const TVector4< T > & | b | |||
) | [inline] |
Subtraction operator for two vectors
References BALL::TVector4< T >::h, BALL::TVector4< T >::x, BALL::TVector4< T >::y, and BALL::TVector4< T >::z.
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.
(0.1 2.0 0 1)
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.
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.
References BALL::Constants::c, BALL::TVector4< T >::h, BALL::TVector4< T >::x, BALL::TVector4< T >::y, and BALL::TVector4< T >::z.
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.
References BALL::TVector3< T >::x, BALL::TVector3< T >::y, and BALL::TVector3< T >::z.