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