|
Public Member Functions |
| | vec3 () |
| | vec3 (float x, float y, float z) |
| | vec3 (const vec3 &v) |
| | vec3 (const vec2 &v) |
| | vec3 (const vec2 &v, float d) |
| | vec3 (const vec4 &v) |
| | vec3 (const vec4 &v, int dropAxis) |
| vec3 & | operator= (const vec3 &v) |
| vec3 & | operator+= (const vec3 &v) |
| vec3 & | operator-= (const vec3 &v) |
| vec3 & | operator *= (float d) |
| vec3 & | operator/= (float d) |
| float | length () const |
| float | length2 () const |
| vec3 & | normalize () |
| vec3 & | homogenize () |
| vec3 & | apply (V_FCT_PTR fct) |
| void | set (float x, float y, float z) |
| void | print (FILE *file, const char *name) const |
| float & | operator[] (int i) |
| const float & | operator[] (int i) const |
Protected Attributes |
| float | n [3] |
Friends |
| vec3 | operator- (const vec3 &v) |
| vec3 | operator+ (const vec3 &a, const vec3 &b) |
| vec3 | operator- (const vec3 &a, const vec3 &b) |
| vec3 | operator * (const vec3 &a, float d) |
| vec3 | operator * (float d, const vec3 &a) |
| vec3 | operator * (const mat4 &a, const vec3 &v) |
| vec3 | operator * (const vec3 &v, const mat4 &a) |
| float | operator * (const vec3 &a, const vec3 &b) |
| vec3 | operator/ (const vec3 &a, float d) |
| vec3 | operator^ (const vec3 &a, const vec3 &b) |
| int | operator== (const vec3 &a, const vec3 &b) |
| int | operator!= (const vec3 &a, const vec3 &b) |
| void | swap (vec3 &a, vec3 &b) |
| vec3 | min_vec (const vec3 &a, const vec3 &b) |
| vec3 | max_vec (const vec3 &a, const vec3 &b) |
| vec3 | prod (const vec3 &a, const vec3 &b) |
| vec2 | operator * (const mat3 &a, const vec2 &v) |
| vec3 | operator * (const mat3 &a, const vec3 &v) |
| mat3 | operator * (const mat3 &a, const mat3 &b) |