#include <vector3.h>
Public Member Functions | |
| vector3 () | |
| vector3 (const float _x, const float _y, const float _z) | |
| vector3 (const vector3 &vec) | |
| void | set (const float _x, const float _y, const float _z) |
| void | set (const vector3 &vec) |
| float | len () const |
| float | lensquared () const |
| void | norm () |
| void | operator+= (const vector3 &v0) |
| void | operator-= (const vector3 &v0) |
| void | operator *= (float s) |
| bool | operator> (const vector3 &rhs) |
| bool | operator< (const vector3 &rhs) |
| bool | isequal (const vector3 &v, float tol=0.0f) const |
| int | compare (const vector3 &v, float tol=0.0f) const |
| void | rotate (const vector3 &axis, float angle) |
| void | lerp (const vector3 &v0, float lerpVal) |
| void | lerp (const vector3 &v0, const vector3 &v1, float lerpVal) |
| vector3 | findortho () const |
| void | saturate () |
| float | dot (const vector3 &v0) const |
Static Public Member Functions | |
| static float | distance (const vector3 &v0, const vector3 &v1) |
| static float | angle (const vector3 &v0, const vector3 &v1) |
Public Attributes | |
| float | x |
| float | y |
| float | z |
| vector3::vector3 | ( | ) | [inline] |
| vector3::vector3 | ( | const float | _x, | |
| const float | _y, | |||
| const float | _z | |||
| ) | [inline] |
| vector3::vector3 | ( | const vector3 & | vec | ) | [inline] |
| void vector3::set | ( | const float | _x, | |
| const float | _y, | |||
| const float | _z | |||
| ) | [inline] |
| void vector3::set | ( | const vector3 & | vec | ) | [inline] |
| float vector3::len | ( | ) | const [inline] |
| float vector3::lensquared | ( | ) | const [inline] |
| void vector3::norm | ( | ) | [inline] |
| void vector3::operator+= | ( | const vector3 & | v0 | ) | [inline] |
| void vector3::operator-= | ( | const vector3 & | v0 | ) | [inline] |
| void vector3::operator *= | ( | float | s | ) | [inline] |
| bool vector3::operator> | ( | const vector3 & | rhs | ) | [inline] |
| bool vector3::operator< | ( | const vector3 & | rhs | ) | [inline] |
| bool vector3::isequal | ( | const vector3 & | v, | |
| float | tol = 0.0f | |||
| ) | const [inline] |
| int vector3::compare | ( | const vector3 & | v, | |
| float | tol = 0.0f | |||
| ) | const [inline] |
| void vector3::rotate | ( | const vector3 & | axis, | |
| float | angle | |||
| ) | [inline] |
| void vector3::lerp | ( | const vector3 & | v0, | |
| float | lerpVal | |||
| ) | [inline] |
| vector3 vector3::findortho | ( | ) | const [inline] |
Find a vector that is orthogonal to self. Self should not be (0,0,0). Return value is not normalized.
| void vector3::saturate | ( | ) | [inline] |
| float vector3::x |
| float vector3::y |
| float vector3::z |
1.5.3