#include <gui_vector2.hpp>
Public Member Functions | |
vector2 () | |
vector2 (T mX, T mY) | |
void | set (T mX, T mY) |
T | get_norm () const |
T | get_norm_squared () const |
void | normalize () |
vector2 | get_unit () const |
void | rotate (const float &fAngle) |
vector2 | get_rotated (const float &fAngle) const |
void | scale (const vector2 &v) |
vector2 | get_scale (const vector2 &v) const |
vector2 | operator+ (const vector2 &v) const |
void | operator+= (const vector2 &v) |
vector2 | operator- () const |
vector2 | operator- (const vector2 &v) const |
void | operator-= (const vector2 &v) |
bool | operator== (const vector2 &v) const |
bool | operator!= (const vector2 &v) const |
vector2 | operator* (T mValue) const |
void | operator*= (T mValue) |
vector2 | operator/ (T mValue) const |
void | operator/= (T mValue) |
T | operator* (const vector2 &v) const |
Public Attributes | |
T | x |
T | y |
Static Public Attributes | |
static const vector2 | ZERO |
static const vector2 | UNIT |
static const vector2 | X |
static const vector2 | Y |
Definition at line 10 of file gui_vector2.hpp.
gui::vector2< T >::vector2 | ( | ) | [inline] |
Definition at line 14 of file gui_vector2.hpp.
gui::vector2< T >::vector2 | ( | T | mX, | |
T | mY | |||
) | [inline] |
Definition at line 18 of file gui_vector2.hpp.
T gui::vector2< T >::get_norm | ( | ) | const [inline] |
Definition at line 27 of file gui_vector2.hpp.
T gui::vector2< T >::get_norm_squared | ( | ) | const [inline] |
Definition at line 32 of file gui_vector2.hpp.
vector2 gui::vector2< T >::get_rotated | ( | const float & | fAngle | ) | const [inline] |
Definition at line 63 of file gui_vector2.hpp.
vector2 gui::vector2< T >::get_scale | ( | const vector2< T > & | v | ) | const [inline] |
Definition at line 75 of file gui_vector2.hpp.
vector2 gui::vector2< T >::get_unit | ( | ) | const [inline] |
Definition at line 44 of file gui_vector2.hpp.
void gui::vector2< T >::normalize | ( | ) | [inline] |
Definition at line 37 of file gui_vector2.hpp.
bool gui::vector2< T >::operator!= | ( | const vector2< T > & | v | ) | const [inline] |
Definition at line 107 of file gui_vector2.hpp.
T gui::vector2< T >::operator* | ( | const vector2< T > & | v | ) | const [inline] |
Definition at line 132 of file gui_vector2.hpp.
vector2 gui::vector2< T >::operator* | ( | T | mValue | ) | const [inline] |
Definition at line 112 of file gui_vector2.hpp.
void gui::vector2< T >::operator*= | ( | T | mValue | ) | [inline] |
Definition at line 117 of file gui_vector2.hpp.
vector2 gui::vector2< T >::operator+ | ( | const vector2< T > & | v | ) | const [inline] |
Definition at line 80 of file gui_vector2.hpp.
void gui::vector2< T >::operator+= | ( | const vector2< T > & | v | ) | [inline] |
Definition at line 84 of file gui_vector2.hpp.
vector2 gui::vector2< T >::operator- | ( | const vector2< T > & | v | ) | const [inline] |
Definition at line 94 of file gui_vector2.hpp.
vector2 gui::vector2< T >::operator- | ( | ) | const [inline] |
Definition at line 89 of file gui_vector2.hpp.
void gui::vector2< T >::operator-= | ( | const vector2< T > & | v | ) | [inline] |
Definition at line 98 of file gui_vector2.hpp.
vector2 gui::vector2< T >::operator/ | ( | T | mValue | ) | const [inline] |
Definition at line 122 of file gui_vector2.hpp.
void gui::vector2< T >::operator/= | ( | T | mValue | ) | [inline] |
Definition at line 127 of file gui_vector2.hpp.
bool gui::vector2< T >::operator== | ( | const vector2< T > & | v | ) | const [inline] |
Definition at line 103 of file gui_vector2.hpp.
void gui::vector2< T >::rotate | ( | const float & | fAngle | ) | [inline] |
Definition at line 50 of file gui_vector2.hpp.
void gui::vector2< T >::scale | ( | const vector2< T > & | v | ) | [inline] |
Definition at line 69 of file gui_vector2.hpp.
void gui::vector2< T >::set | ( | T | mX, | |
T | mY | |||
) | [inline] |
Definition at line 22 of file gui_vector2.hpp.
const vector2< T > gui::vector2< T >::UNIT [inline, static] |
Definition at line 138 of file gui_vector2.hpp.
T gui::vector2< T >::x |
Definition at line 142 of file gui_vector2.hpp.
const vector2< T > gui::vector2< T >::X [inline, static] |
Definition at line 139 of file gui_vector2.hpp.
T gui::vector2< T >::y |
Definition at line 142 of file gui_vector2.hpp.
const vector2< T > gui::vector2< T >::Y [inline, static] |
Definition at line 140 of file gui_vector2.hpp.
const vector2< T > gui::vector2< T >::ZERO [inline, static] |
Definition at line 137 of file gui_vector2.hpp.