BALL
1.4.79
|
Classes | |
class | BALL::TVector4< T > |
Typedefs | |
typedef TVector4< float > | BALL::Vector4 |
Functions | |
template<typename T > | |
BALL_INLINE TVector4< T > | BALL::operator* (const T &scalar, const TVector4< T > &v) |
template<typename T > | |
BALL_INLINE TVector4< T > | BALL::operator* (const TVector4< T > &v, const T &scalar) |
Global binary operators for three-dimensional vectors. | |
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) |
Constructors and Destructors | |
BALL::TVector4< T >::TVector4 () | |
BALL::TVector4< T >::TVector4 (const T *ptr) | |
BALL::TVector4< T >::TVector4 (const T &value) | |
BALL::TVector4< T >::TVector4 (const T &x, const T &y, const T &z, const T &h=(T) 1) | |
BALL::TVector4< T >::TVector4 (const TVector4 &vector) | |
virtual | BALL::TVector4< T >::~TVector4 () |
virtual void | BALL::TVector4< T >::clear () |
Assignment | |
void | BALL::TVector4< T >::set (const T *ptr) |
void | BALL::TVector4< T >::set (const T &rx, const T &ry, const T &rz, const T &rh=(T) 1) |
void | BALL::TVector4< T >::set (const TVector4 &vector) |
TVector4 & | BALL::TVector4< T >::operator= (const T *ptr) |
TVector4 & | BALL::TVector4< T >::operator= (const TVector4 &vector) |
TVector4 & | BALL::TVector4< T >::operator= (T value) |
void | BALL::TVector4< T >::get (T *ptr) const |
void | BALL::TVector4< T >::get (T &rx, T &ry, T &rz, T &rh) const |
void | BALL::TVector4< T >::get (TVector4 &vector) const |
void | BALL::TVector4< T >::swap (TVector4 &vector) |
Accessors | |
T | BALL::TVector4< T >::getLength () const |
T | BALL::TVector4< T >::getSquareLength () const |
TVector4 & | BALL::TVector4< T >::normalize () |
static const TVector4 & | BALL::TVector4< T >::getZero () |
static const TVector4 & | BALL::TVector4< T >::getUnit () |
void | BALL::TVector4< T >::set (const T &value=(T) 1) |
T & | BALL::TVector4< T >::operator[] (Position position) |
const T & | BALL::TVector4< T >::operator[] (Position position) const |
Arithmetic operators | |
TVector4 | BALL::TVector4< T >::operator+ () const |
TVector4 | BALL::TVector4< T >::operator- () const |
TVector4 & | BALL::TVector4< T >::operator+= (const TVector4 &vector) |
TVector4 & | BALL::TVector4< T >::operator-= (const TVector4 &vector) |
TVector4 | BALL::TVector4< T >::operator* (const T &scalar) |
TVector4 & | BALL::TVector4< T >::operator*= (const T &scalar) |
TVector4 | BALL::TVector4< T >::operator/ (const T &scalar) |
TVector4 & | BALL::TVector4< T >::operator/= (const T &scalar) |
T | BALL::TVector4< T >::operator* (const TVector4 &vector) const |
T | BALL::TVector4< T >::getDistance (const TVector4 &vector) const |
T | BALL::TVector4< T >::getSquareDistance (const TVector4 &vector) const |
Predicates | |
bool | BALL::TVector4< T >::operator== (const TVector4 &vector) const |
bool | BALL::TVector4< T >::operator!= (const TVector4 &vector) const |
bool | BALL::TVector4< T >::isOrthogonalTo (const TVector4 &vector) const |
Debugging and Diagnostics | |
bool | BALL::TVector4< T >::isValid () const |
void | BALL::TVector4< T >::dump (std::ostream &s=std::cout, Size depth=0) const |
Attributes | |
T | BALL::TVector4< T >::x |
T | BALL::TVector4< T >::y |
T | BALL::TVector4< T >::z |
T | BALL::TVector4< T >::h |
typedef TVector4<float> BALL::Vector4 |
BALL::TVector4< T >::TVector4 | ( | ) |
BALL::TVector4< T >::TVector4 | ( | const T * | ptr | ) |
|
explicit |
BALL::TVector4< T >::TVector4 | ( | const T & | x, |
const T & | y, | ||
const T & | z, | ||
const T & | h = (T)1 |
||
) |
BALL::TVector4< T >::TVector4 | ( | const TVector4< T > & | vector | ) |
|
virtual |
|
inlinevirtual |
void BALL::TVector4< T >::dump | ( | std::ostream & | s = std::cout , |
Size | depth = 0 |
||
) | const |
BALL_INLINE void BALL::TVector4< T >::get | ( | T * | ptr | ) | const |
BALL_INLINE void BALL::TVector4< T >::get | ( | T & | rx, |
T & | ry, | ||
T & | rz, | ||
T & | rh | ||
) | const |
BALL_INLINE void BALL::TVector4< T >::get | ( | TVector4< T > & | vector | ) | const |
BALL_INLINE T BALL::TVector4< T >::getDistance | ( | const TVector4< T > & | vector | ) | const |
BALL_INLINE T BALL::TVector4< T >::getLength | ( | ) | const |
BALL_INLINE T BALL::TVector4< T >::getSquareDistance | ( | const TVector4< T > & | vector | ) | const |
BALL_INLINE T BALL::TVector4< T >::getSquareLength | ( | ) | const |
|
static |
|
static |
BALL_INLINE bool BALL::TVector4< T >::isOrthogonalTo | ( | const TVector4< T > & | vector | ) | const |
BALL_INLINE bool BALL::TVector4< T >::isValid | ( | ) | const |
BALL_INLINE TVector4< T > & BALL::TVector4< T >::normalize | ( | ) |
BALL_INLINE bool BALL::TVector4< T >::operator!= | ( | const TVector4< T > & | vector | ) | const |
Inequality operator. The function Maths::isEqual is used to compare the values. Maths::isEqual
BALL_INLINE TVector4< T > BALL::TVector4< T >::operator* | ( | const T & | scalar | ) |
BALL_INLINE T BALL::TVector4< T >::operator* | ( | const TVector4< T > & | vector | ) | const |
BALL_INLINE TVector4<T> BALL::operator* | ( | const T & | scalar, |
const TVector4< T > & | v | ||
) |
BALL_INLINE TVector4<T> BALL::operator* | ( | const TVector4< T > & | v, |
const T & | scalar | ||
) |
BALL_INLINE TVector4< T > & BALL::TVector4< T >::operator*= | ( | const T & | scalar | ) |
BALL_INLINE TVector4< T > BALL::operator+ | ( | const TVector4< T > & | a, |
const TVector4< T > & | b | ||
) |
BALL_INLINE TVector4< T > BALL::TVector4< T >::operator+ | ( | ) | const |
BALL_INLINE TVector4< T > & BALL::TVector4< T >::operator+= | ( | const TVector4< T > & | vector | ) |
BALL_INLINE TVector4< T > BALL::operator- | ( | const TVector4< T > & | a, |
const TVector4< T > & | b | ||
) |
Subtraction operator for two vectors
BALL_INLINE TVector4< T > BALL::TVector4< T >::operator- | ( | ) | const |
BALL_INLINE TVector4< T > & BALL::TVector4< T >::operator-= | ( | const TVector4< T > & | vector | ) |
TVector4< T > BALL::TVector4< T >::operator/ | ( | const T & | scalar | ) |
Fraction of a vector. Return TVector4(x / scalar, y / scalar, z / scalar, h / scalar)
.
scalar | the scalar to divide by |
Exception::DivisionByZero | if scalar == (T)0 |
TVector4< T > & BALL::TVector4< T >::operator/= | ( | const T & | scalar | ) |
Divide a vector by a scalar.
scalar | the scalar to divide by |
Exception::DivisionByZero | if scalar == (T)0 |
std::ostream & BALL::operator<< | ( | std::ostream & | s, |
const TVector4< T > & | v | ||
) |
BALL_INLINE TVector4< T > & BALL::TVector4< T >::operator= | ( | const T * | ptr | ) |
BALL_INLINE TVector4< T > & BALL::TVector4< T >::operator= | ( | const TVector4< T > & | vector | ) |
BALL_INLINE TVector4< T > & BALL::TVector4< T >::operator= | ( | T | value | ) |
BALL_INLINE bool BALL::TVector4< T >::operator== | ( | const TVector4< T > & | vector | ) | const |
Equality operator. The function Maths::isEqual is used to compare the values. Maths::isEqual
std::istream & BALL::operator>> | ( | std::istream & | s, |
TVector4< T > & | v | ||
) |
BALL_INLINE T & BALL::TVector4< T >::operator[] | ( | Position | position | ) |
Mutable array-like access to the components.
Exception::IndexOverflow | if index > 3 |
BALL_INLINE const T & BALL::TVector4< T >::operator[] | ( | Position | position | ) | const |
Constant array-like access to the components.
Exception::IndexOverflow | if index > 3 |
BALL_INLINE void BALL::TVector4< T >::set | ( | const T * | ptr | ) |
BALL_INLINE void BALL::TVector4< T >::set | ( | const T & | rx, |
const T & | ry, | ||
const T & | rz, | ||
const T & | rh = (T)1 |
||
) |
BALL_INLINE void BALL::TVector4< T >::set | ( | const TVector4< T > & | vector | ) |
BALL_INLINE void BALL::TVector4< T >::set | ( | const T & | value = (T)1 | ) |
void BALL::TVector4< T >::swap | ( | TVector4< T > & | vector | ) |
T BALL::TVector4< T >::h |
T BALL::TVector4< T >::x |
T BALL::TVector4< T >::y |
T BALL::TVector4< T >::z |