#include <vector3.h>
Public Member Functions | |
Vector3 () | |
Vector3 (const T x0, const T y0, const T z0) | |
void | operator() (const T x0, const T y0, const T z0) |
bool | operator== (const Vector3< T > &v) |
bool | operator!= (const Vector3< T > &v) |
Vector3< T > | operator- (void) const |
Vector3< T > | operator+ (const Vector3< T > &v) const |
Vector3< T > | operator- (const Vector3< T > &v) const |
Vector3< T > | operator* (const T num) const |
Vector3< T > | operator/ (const T num) const |
Vector3< T > & | operator+= (const Vector3< T > &v) |
Vector3< T > & | operator-= (const Vector3< T > &v) |
Vector3< T > & | operator*= (const T num) |
Vector3< T > & | operator/= (const T num) |
T | operator* (const Vector3< T > &v) const |
Vector3< T > | operator% (const Vector3< T > &v) const |
T | length_squared () const |
float | length () const |
void | normalize () |
Vector3< T > | normalized () const |
void | reflect (const Vector3< T > &n) |
void | project (const Vector3< T > &v) |
Vector3< T > | projected (const Vector3< T > &v) |
T | angle (const Vector3< T > &v1, const Vector3< T > &v2) |
T | angle_normalized (const Vector3< T > &v1, const Vector3< T > &v2) |
Public Attributes | |
T | x |
T | y |
T | z |
Definition at line 48 of file vector3.h.
float Vector3< T >::length | ( | ) | const [inline] |
T Vector3< T >::length_squared | ( | ) | const [inline] |
void Vector3< T >::normalize | ( | void | ) | [inline] |
void Vector3< T >::operator() | ( | const T | x0, | |
const T | y0, | |||
const T | z0 | |||
) | [inline] |