|
| | vec2 (void) |
| |
| | vec2 (decimal _x, decimal _y) |
| |
| | vec2 (const decimal *_v) |
| |
| | vec2 (const vec2 &_v) |
| |
| | vec2 (const vec2 &_v, const vec2 &_w) |
| |
| | vec2 (const vec3 &_v) |
| |
| | vec2 (const vec4 &_v) |
| |
| int | operator== (const vec2 &_v) |
| |
| int | operator!= (const vec2 &_v) |
| |
| vec2 & | operator= (decimal _f) |
| |
| const vec2 | operator* (decimal _f) const |
| |
| const vec2 | operator/ (decimal _f) const |
| |
| const vec2 | operator+ (const vec2 &_v) const |
| |
| const vec2 | operator- () const |
| |
| const vec2 | operator- (const vec2 &_v) const |
| |
| decimal | operator^ (const vec2 &_v) const |
| |
| vec2 & | operator*= (decimal _f) |
| |
| vec2 & | operator/= (decimal _f) |
| |
| vec2 & | operator+= (const vec2 &_v) |
| |
| vec2 & | operator-= (const vec2 &_v) |
| |
| decimal | operator* (const vec2 &_v) const |
| |
| | operator decimal * () |
| |
| | operator const decimal * () const |
| |
| decimal & | operator[] (int _i) |
| |
| const decimal & | operator[] (int _i) const |
| |
| void | set (decimal _x, decimal _y) |
| |
| void | reset (void) |
| |
| decimal | length (void) const |
| |
| decimal | normalize (void) |
| |
| decimal | det (vec2 &v) |
| | 2D determinant More...
|
| |
| decimal | dot (const vec2 &v) |
| | Scalar product. More...
|
| |
| bool | compare (const vec2 &_v, decimal epsi=EPSILON_6) |
| |
| vec2 | closestPointOnLine (const vec2 &vA, const vec2 &vB) |
| | Return the coordinates of the nearest point of *this on the line passing by vA and vB. More...
|
| |
| vec2 | closestPointOnSegment (const vec2 &vA, const vec2 &vB) |
| | Return the coordinates of the nearest point of *this on the segment vA,vB. More...
|
| |
| decimal | projectionOnLine (const vec2 &vA, const vec2 &vB) |
| | Return the projection factor of *this on the line passing by vA and vB. More...
|
| |
| vec2 | lerp (vec2 &u, vec2 &v, decimal factor) |
| | Linear interpolation function between 2 vectors. More...
|
| |
| decimal | angle (void) |
| |
| decimal | angle (const vec2 &v) |
| |
2D Vector Vector defined with 2 float numbers
Definition at line 472 of file mathlib.h.