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