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) |
Attributes | |
All vector components are public members for convenience. | |
T | BALL::TVector4::x |
T | BALL::TVector4::y |
T | BALL::TVector4::z |
T | BALL::TVector4::h |
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::TVector4 () | |
BALL::TVector4::TVector4 (const T *ptr) throw (Exception::NullPointer) | |
BALL::TVector4::TVector4 (const T &value) | |
BALL::TVector4::TVector4 (const T &x, const T &y, const T &z, const T &h=(T) 1) | |
BALL::TVector4::TVector4 (const TVector4 &vector) | |
virtual | BALL::TVector4::~TVector4 () |
virtual void | BALL::TVector4::clear () |
Assignment | |
| |
void | BALL::TVector4::set (const T *ptr) throw (Exception::NullPointer) |
void | BALL::TVector4::set (const T &rx, const T &ry, const T &rz, const T &rh=(T) 1) |
void | BALL::TVector4::set (const TVector4 &vector) |
TVector4 & | BALL::TVector4::operator= (const T *ptr) throw (Exception::NullPointer) |
TVector4 & | BALL::TVector4::operator= (const TVector4 &vector) |
TVector4 & | BALL::TVector4::operator= (T value) |
void | BALL::TVector4::get (T *ptr) const throw (Exception::NullPointer) |
void | BALL::TVector4::get (T &rx, T &ry, T &rz, T &rh) const |
void | BALL::TVector4::get (TVector4 &vector) const |
void | BALL::TVector4::swap (TVector4 &vector) |
Accessors | |
| |
T | BALL::TVector4::getLength () const |
T | BALL::TVector4::getSquareLength () const |
TVector4 & | BALL::TVector4::normalize () throw (Exception::DivisionByZero) |
static const TVector4 & | BALL::TVector4::getZero () |
static const TVector4 & | BALL::TVector4::getUnit () |
void | BALL::TVector4::set (const T &value=(T) 1) |
T & | BALL::TVector4::operator[] (Position position) throw (Exception::IndexOverflow) |
const T & | BALL::TVector4::operator[] (Position position) const throw (Exception::IndexOverflow) |
Arithmetic operators | |
| |
TVector4 | BALL::TVector4::operator+ () const |
TVector4 | BALL::TVector4::operator- () const |
TVector4 & | BALL::TVector4::operator+= (const TVector4 &vector) |
TVector4 & | BALL::TVector4::operator-= (const TVector4 &vector) |
TVector4 | BALL::TVector4::operator* (const T &scalar) |
TVector4 & | BALL::TVector4::operator*= (const T &scalar) |
TVector4 | BALL::TVector4::operator/ (const T &scalar) throw (Exception::DivisionByZero) |
TVector4 & | BALL::TVector4::operator/= (const T &scalar) throw (Exception::DivisionByZero) |
T | BALL::TVector4::operator* (const TVector4 &vector) const |
T | BALL::TVector4::getDistance (const TVector4 &vector) const |
T | BALL::TVector4::getSquareDistance (const TVector4 &vector) const |
Predicates | |
| |
bool | BALL::TVector4::operator== (const TVector4 &vector) const |
bool | BALL::TVector4::operator!= (const TVector4 &vector) const |
bool | BALL::TVector4::isOrthogonalTo (const TVector4 &vector) const |
Debugging and Diagnostics | |
| |
bool | BALL::TVector4::isValid () const |
void | BALL::TVector4::dump (std::ostream &s=std::cout, Size depth=0) const |
typedef TVector4<float> BALL::Vector4 |
BALL::TVector4< T >::TVector4 | ( | const TVector4< T > & | vector | ) | [inline, inherited] |
BALL::TVector4< T >::TVector4 | ( | const T & | x, | |
const T & | y, | |||
const T & | z, | |||
const T & | h = (T)1 | |||
) | [inline, inherited] |
BALL::TVector4< T >::TVector4 | ( | const T & | value | ) | [inline, explicit, inherited] |
BALL::TVector4< T >::TVector4 | ( | const T * | ptr | ) | throw (Exception::NullPointer) [inline, inherited] |
BALL::TVector4< T >::TVector4 | ( | ) | [inline, inherited] |
BALL::TVector4< T >::~TVector4 | ( | ) | [inline, virtual, inherited] |
virtual void BALL::TVector4< T >::clear | ( | ) | [inline, virtual, inherited] |
void BALL::TVector4< T >::dump | ( | std::ostream & | s = std::cout , |
|
Size | depth = 0 | |||
) | const [inline, inherited] |
BALL_INLINE void BALL::TVector4< T >::get | ( | TVector4< T > & | vector | ) | const [inline, inherited] |
BALL_INLINE void BALL::TVector4< T >::get | ( | T & | rx, | |
T & | ry, | |||
T & | rz, | |||
T & | rh | |||
) | const [inline, inherited] |
BALL_INLINE void BALL::TVector4< T >::get | ( | T * | ptr | ) | const throw (Exception::NullPointer) [inline, inherited] |
BALL_INLINE T BALL::TVector4< T >::getDistance | ( | const TVector4< T > & | vector | ) | const [inline, inherited] |
BALL_INLINE T BALL::TVector4< T >::getLength | ( | ) | const [inline, inherited] |
BALL_INLINE T BALL::TVector4< T >::getSquareDistance | ( | const TVector4< T > & | vector | ) | const [inline, inherited] |
BALL_INLINE T BALL::TVector4< T >::getSquareLength | ( | ) | const [inline, inherited] |
BALL_INLINE const TVector4< T > & BALL::TVector4< T >::getUnit | ( | ) | [inline, static, inherited] |
BALL_INLINE const TVector4< T > & BALL::TVector4< T >::getZero | ( | ) | [inline, static, inherited] |
BALL_INLINE bool BALL::TVector4< T >::isOrthogonalTo | ( | const TVector4< T > & | vector | ) | const [inline, inherited] |
BALL_INLINE bool BALL::TVector4< T >::isValid | ( | ) | const [inline, inherited] |
BALL_INLINE TVector4< T > & BALL::TVector4< T >::normalize | ( | ) | throw (Exception::DivisionByZero) [inline, inherited] |
BALL_INLINE bool BALL::TVector4< T >::operator!= | ( | const TVector4< T > & | vector | ) | const [inline, inherited] |
Inequality operator. The function Maths::isEqual is used to compare the values. Maths::isEqual
BALL_INLINE TVector4<T> BALL::operator* | ( | const TVector4< T > & | v, | |
const T & | scalar | |||
) | [inline] |
BALL_INLINE TVector4<T> BALL::operator* | ( | const T & | scalar, | |
const TVector4< T > & | v | |||
) | [inline] |
BALL_INLINE T BALL::TVector4< T >::operator* | ( | const TVector4< T > & | vector | ) | const [inline, inherited] |
BALL_INLINE TVector4< T > BALL::TVector4< T >::operator* | ( | const T & | scalar | ) | [inline, inherited] |
BALL_INLINE TVector4< T > & BALL::TVector4< T >::operator*= | ( | const T & | scalar | ) | [inline, inherited] |
BALL_INLINE TVector4< T > BALL::TVector4< T >::operator+ | ( | ) | const [inline, inherited] |
BALL_INLINE TVector4< T > BALL::operator+ | ( | const TVector4< T > & | a, | |
const TVector4< T > & | b | |||
) | [inline] |
BALL_INLINE TVector4< T > & BALL::TVector4< T >::operator+= | ( | const TVector4< T > & | vector | ) | [inline, inherited] |
BALL_INLINE TVector4< T > BALL::TVector4< T >::operator- | ( | ) | const [inline, inherited] |
BALL_INLINE TVector4< T > BALL::operator- | ( | const TVector4< T > & | a, | |
const TVector4< T > & | b | |||
) | [inline] |
Subtraction operator for two vectors
BALL_INLINE TVector4< T > & BALL::TVector4< T >::operator-= | ( | const TVector4< T > & | vector | ) | [inline, inherited] |
TVector4< T > BALL::TVector4< T >::operator/ | ( | const T & | scalar | ) | throw (Exception::DivisionByZero) [inline, inherited] |
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 | ) | throw (Exception::DivisionByZero) [inline, inherited] |
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 | |||
) | [inline] |
BALL_INLINE TVector4< T > & BALL::TVector4< T >::operator= | ( | T | value | ) | [inline, inherited] |
BALL_INLINE TVector4< T > & BALL::TVector4< T >::operator= | ( | const TVector4< T > & | vector | ) | [inline, inherited] |
BALL_INLINE TVector4< T > & BALL::TVector4< T >::operator= | ( | const T * | ptr | ) | throw (Exception::NullPointer) [inline, inherited] |
BALL_INLINE bool BALL::TVector4< T >::operator== | ( | const TVector4< T > & | vector | ) | const [inline, inherited] |
Equality operator. The function Maths::isEqual is used to compare the values. Maths::isEqual
std::istream & BALL::operator>> | ( | std::istream & | s, | |
TVector4< T > & | v | |||
) | [inline] |
BALL_INLINE const T & BALL::TVector4< T >::operator[] | ( | Position | position | ) | const throw (Exception::IndexOverflow) [inline, inherited] |
Constant array-like access to the components.
Exception::IndexOverflow | if index > 3 |
BALL_INLINE T & BALL::TVector4< T >::operator[] | ( | Position | position | ) | throw (Exception::IndexOverflow) [inline, inherited] |
Mutable array-like access to the components.
Exception::IndexOverflow | if index > 3 |
BALL_INLINE void BALL::TVector4< T >::set | ( | const T & | value = (T)1 |
) | [inline, inherited] |
BALL_INLINE void BALL::TVector4< T >::set | ( | const TVector4< T > & | vector | ) | [inline, inherited] |
BALL_INLINE void BALL::TVector4< T >::set | ( | const T & | rx, | |
const T & | ry, | |||
const T & | rz, | |||
const T & | rh = (T)1 | |||
) | [inline, inherited] |
BALL_INLINE void BALL::TVector4< T >::set | ( | const T * | ptr | ) | throw (Exception::NullPointer) [inline, inherited] |
void BALL::TVector4< T >::swap | ( | TVector4< T > & | vector | ) | [inline, inherited] |
T BALL::TVector4< T >::h [inherited] |
T BALL::TVector4< T >::x [inherited] |
T BALL::TVector4< T >::y [inherited] |
T BALL::TVector4< T >::z [inherited] |