#include <Vector2.h>
Public Member Functions | |
Vector2 () | |
Vector2 (T x, T y) | |
bool | operator== (const Vector2 &vector) const |
Vector2< T > | operator+ (const Vector2 &vector) const |
Vector2< T > & | operator+= (const Vector2 &vector) |
Vector2< T > | negative () const |
const char * | toString () |
Public Attributes | |
T | x |
T | y |
Static Public Attributes | |
static const Vector2 | UNIT_ZERO |
math::Vector2< T >::Vector2 | ( | ) |
Constructor
math::Vector2< T >::Vector2 | ( | T | x, | |
T | y | |||
) |
Constructor
bool math::Vector2< T >::operator== | ( | const Vector2< T > & | vector | ) | const |
Vectors comparison
vector | The outside vector |
Vector2<T> math::Vector2< T >::operator+ | ( | const Vector2< T > & | vector | ) | const |
Vectors operation
vector | The outside vector |
Vector2<T>& math::Vector2< T >::operator+= | ( | const Vector2< T > & | vector | ) |
Vectors attribution
vector | The outside vector |
Vector2<T> math::Vector2< T >::negative | ( | ) | const |
Negate the vector values
const char* math::Vector2< T >::toString | ( | ) | [inline, virtual] |
const Vector2 math::Vector2< T >::UNIT_ZERO [static] |
Predefined vector property
T math::Vector2< T >::x |
x value
T math::Vector2< T >::y |
y value