|
| | cVector3 () |
| | Constructor.
|
| |
| | cVector3 (const IVector3 *pVector3) |
| | constructor from IVector3
|
| |
| | cVector3 (const tFloat64 f64X, const tFloat64 f64Y, const tFloat64 f64Z) |
| | Constructor.
|
| |
| tVoid | Release () |
| | Releases this vector.
|
| |
| OPT_INLINE void | Set (const cVector3 &Vector) |
| | Set vector to the given value.
|
| |
| OPT_INLINE void | Set (const tFloat64 Value) |
| | Set vector to the given value.
|
| |
| OPT_INLINE void | Set (const tFloat64 f64X, const tFloat64 f64Y, const tFloat64 f64Z) |
| | Set vector to the given value.
|
| |
| OPT_INLINE void | Zero () |
| | Set vector to zero.
|
| |
| OPT_INLINE void | Add (const cVector3 &Vector) |
| | Add the given vector to the current one.
|
| |
| OPT_INLINE void | Sub (const cVector3 &Vector) |
| | Subtract the given vector from the current one.
|
| |
| OPT_INLINE void | Scale (const tFloat64 Value) |
| | Scale the current vector by the given value.
|
| |
| OPT_INLINE void | Scale (const cVector3 &Vector) |
| | Scale the current vector by the given one.
|
| |
| OPT_INLINE cVector3 | Scalar (const cVector3 &Vector) const |
| | Multiply every coordinate of the current vector with the corresponding coordinate from the given one.
|
| |
| OPT_INLINE cVector3 | Multiply (const cVector3 &Vector) const |
| | Cross product of the current vector and the given one.
|
| |
| tFloat | Length () const |
| | Calculate the length of the current vector.
|
| |
| void | Normalize () |
| | Normalize the current vector so that the length becomes one.
|
| |
| void | Dump () |
| | Dump the current vector to stdout.
|
| |
| tFloat64 | GetX () const |
| | gets the value of the x component
|
| |
| tVoid | SetX (tFloat64 f64XValue) |
| | Set the current x value to the given one.
|
| |
| tFloat64 | GetY () const |
| | gets the value of the y component
|
| |
| tVoid | SetY (tFloat64 f64YValue) |
| | Set the current y value to the given one.
|
| |
| tFloat64 | GetZ () const |
| | gets the value of the z component
|
| |
| tVoid | SetZ (tFloat64 f64ZValue) |
| | Set the current z value to the given one.
|
| |
| cVector3 | operator= (const cVector3 &v) |
| | Set the current vector to the given one.
|
| |
| cVector3 | operator- (void) |
| | Negate the current vector.
|
| |
| | operator IVector3 * () |
| | instance of IVector3
|
| |
| virtual | ~IVector3 () |
| | virtual destructor to ensure proper cleanup.
|
| |
3D vector class.
Definition at line 31 of file vector3.h.