#include <BALL/MATHS/vector4.h>
Public Member Functions | |
Constructors and Destructors | |
TVector4 () | |
TVector4 (const T *ptr) throw (Exception::NullPointer) | |
TVector4 (const T &value) | |
TVector4 (const T &x, const T &y, const T &z, const T &h=(T) 1) | |
TVector4 (const TVector4 &vector) | |
virtual | ~TVector4 () |
virtual void | clear () |
Assignment | |
void | set (const T *ptr) throw (Exception::NullPointer) |
void | set (const T &rx, const T &ry, const T &rz, const T &rh=(T) 1) |
void | set (const TVector4 &vector) |
TVector4 & | operator= (const T *ptr) throw (Exception::NullPointer) |
TVector4 & | operator= (const TVector4 &vector) |
TVector4 & | operator= (T value) |
void | get (T *ptr) const throw (Exception::NullPointer) |
void | get (T &rx, T &ry, T &rz, T &rh) const |
void | get (TVector4 &vector) const |
void | swap (TVector4 &vector) |
Arithmetic operators | |
TVector4 | operator+ () const |
TVector4 | operator- () const |
TVector4 & | operator+= (const TVector4 &vector) |
TVector4 & | operator-= (const TVector4 &vector) |
TVector4 | operator* (const T &scalar) |
TVector4 & | operator*= (const T &scalar) |
TVector4 | operator/ (const T &scalar) throw (Exception::DivisionByZero) |
TVector4 & | operator/= (const T &scalar) throw (Exception::DivisionByZero) |
T | operator* (const TVector4 &vector) const |
T | getDistance (const TVector4 &vector) const |
T | getSquareDistance (const TVector4 &vector) const |
Predicates | |
bool | operator== (const TVector4 &vector) const |
bool | operator!= (const TVector4 &vector) const |
bool | isOrthogonalTo (const TVector4 &vector) const |
Debugging and Diagnostics | |
bool | isValid () const |
void | dump (std::ostream &s=std::cout, Size depth=0) const |
Public Attributes | |
Attributes | |
T | x |
T | y |
T | z |
T | h |
Accessors | |
| |
T | getLength () const |
T | getSquareLength () const |
TVector4 & | normalize () throw (Exception::DivisionByZero) |
void | set (const T &value=(T) 1) |
T & | operator[] (Position position) throw (Exception::IndexOverflow) |
const T & | operator[] (Position position) const throw (Exception::IndexOverflow) |
static const TVector4 & | getZero () |
static const TVector4 & | getUnit () |
Generic Four-Dimensional Vector. Representation of points and vectors in four-dimensional space.