#include <Vector.h>
Public Member Functions | |
Vector3 (T x) | |
Vector3 (T x, T y) | |
Vector3 (T x, T y, T z) | |
Vector3 (const Vector3< T, FLOATTYPE > &v) | |
FLOATTYPE | Length () |
Lenght of this vector. | |
void | Normalize () |
Normalizes this vector. | |
void | Reverse () |
Reverses this vector. | |
Vector3< T, FLOATTYPE > | Transform (Matrix3< T, FLOATTYPE > *m) |
Returns a modified vector by matrix m. | |
Vector3< T, FLOATTYPE > | Transform (Matrix4< T, FLOATTYPE > *m) |
Modifies the vector by matrix m. | |
void | MultEqual (Matrix3< T, FLOATTYPE > *m) |
void | MultEqual (Vector3< T, FLOATTYPE > *v) |
FLOATTYPE | DotProduct (Vector3< T, FLOATTYPE > *b) |
Vector3< T, FLOATTYPE > | CrossProduct (Vector3< T, FLOATTYPE > *w) |
3D Exterior Cross Product | |
void | Translate (FLOATTYPE x, FLOATTYPE y, FLOATTYPE z) |
Vector3< 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 Vector3< T, FLOATTYPE > | GetNormal (Vector4< T, FLOATTYPE > *a, Vector4< T, FLOATTYPE > *b) |
Returns the normal vector of the plane defined by the two vectors. | |
static Vector3< T, FLOATTYPE > | GetNormal (Vector3< T, FLOATTYPE > *a, Vector3< T, FLOATTYPE > *b, Vector3< T, FLOATTYPE > *c) |
Returns the normal vector of the plane defined by the two vectors. | |
static Vector3< T, FLOATTYPE > | VectorProduct (Vector3< T, FLOATTYPE > *a, Vector3< T, FLOATTYPE > *b) |
Returns a x b. | |
static Vector3< T, FLOATTYPE > | VectorProduct (Vector4< T, FLOATTYPE > *a, Vector3< T, FLOATTYPE > *b, Vector3< T, FLOATTYPE > *c) |
Returns (b-a) x (c-a). | |
static FLOATTYPE | Angle (Vector3< T, FLOATTYPE > *a, Vector3< T, FLOATTYPE > *b) |
Returns the angle between 2 vectors, which are also normalized. | |
static Vector3< T, FLOATTYPE > | Add (Vector3< T, FLOATTYPE > *a, Vector3< T, FLOATTYPE > *b) |
Adds 2 vectors | |
static Vector3< T, FLOATTYPE > | Sub (Vector3< T, FLOATTYPE > *a, Vector3< T, FLOATTYPE > *b) |
Substracts 2 vectors. | |
static Vector3< T, FLOATTYPE > | Scale (FLOATTYPE f, Vector3< T, FLOATTYPE > *a) |
Math vector in R3.
Definition at line 34 of file Vector.h.