BALL
1.4.79
|
#include <BALL/MATHS/vector4.h>
Public Member Functions | |
Constructors and Destructors | |
TVector4 () | |
TVector4 (const T *ptr) | |
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) |
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) |
TVector4 & | operator= (const TVector4 &vector) |
TVector4 & | operator= (T value) |
void | get (T *ptr) const |
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) |
TVector4 & | operator/= (const T &scalar) |
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 | |
All vector components are public members for convenience. | |
T | x |
T | y |
T | z |
T | h |
Accessors | |
T | getLength () const |
T | getSquareLength () const |
TVector4 & | normalize () |
void | set (const T &value=(T) 1) |
T & | operator[] (Position position) |
const T & | operator[] (Position position) const |
static const TVector4 & | getZero () |
static const TVector4 & | getUnit () |