#include <Vector.h>
Public Member Functions | |
Vector4 (T x) | |
Vector4 (T x, T y) | |
Vector4 (T x, T y, T z) | |
Vector4 (T x, T y, T z, T w) | |
Vector4 (const Vector4< T, FLOATTYPE > &v) | |
T | X () |
T | Y () |
T | Z () |
T | W () |
FLOATTYPE | Length () |
Lenght of this vector. | |
void | Normalize () |
Normalizes this vector. | |
void | Reverse () |
Reverses this vector. | |
Vector4< T, FLOATTYPE > | Transform (Matrix4< T, FLOATTYPE > *m) |
Returns a modified vector by matrix m. | |
FLOATTYPE | DotProduct (Vector4< T, FLOATTYPE > *b) |
Vector4< T, FLOATTYPE > | CrossProduct (Vector4< T, FLOATTYPE > *w) |
3D Exterior Cross Product | |
Vector4< T, FLOATTYPE > | ToNormalized () |
virtual void | ValidateMem () const |
virtual void | CheckMem () const |
Static Public Member Functions | |
static void | GetCylindric (T x, T y, FLOATTYPE *r, FLOATTYPE *theta) |
Returns the cylindric coordinates out of the given cartesian coordinates | |
static void | GetCartesian (T *x, T *y, FLOATTYPE r, FLOATTYPE theta) |
static Vector4< T, FLOATTYPE > | GetNormal (Vector4< T, FLOATTYPE > *a, Vector4< T, FLOATTYPE > *b) |
Returns the normal vector of the plane defined by the two vectors. | |
static Vector4< T, FLOATTYPE > | GetNormal (Vector4< T, FLOATTYPE > *a, Vector4< T, FLOATTYPE > *b, Vector4< T, FLOATTYPE > *c) |
Returns the normal vector of the plane defined by the two vectors. | |
static Vector4< T, FLOATTYPE > | VectorProduct (Vector4< T, FLOATTYPE > *a, Vector4< T, FLOATTYPE > *b) |
Returns a x b. | |
static Vector4< T, FLOATTYPE > | VectorProduct (Vector4< T, FLOATTYPE > *a, Vector4< T, FLOATTYPE > *b, Vector4< T, FLOATTYPE > *c) |
Returns (b-a) x (c-a). | |
static FLOATTYPE | Angle (Vector4< T, FLOATTYPE > *a, Vector4< T, FLOATTYPE > *b) |
Returns the angle between 2 vectors, which are also normalized. | |
static Vector4< T, FLOATTYPE > | Add (Vector4< T, FLOATTYPE > *a, Vector4< T, FLOATTYPE > *b) |
Adds 2 vectors | |
static Vector4< T, FLOATTYPE > | Sub (Vector4< T, FLOATTYPE > *a, Vector4< T, FLOATTYPE > *b) |
Substracts 2 vectors. | |
static Vector4< T, FLOATTYPE > | Scale (FLOATTYPE f, Vector4< T, FLOATTYPE > *a) |
Math vector in R4.
Definition at line 238 of file Vector.h.