NWengine 0.9
|
Public Member Functions | |
Vector2 (T x=0.0f, T y=0.0f) | |
Vector2< float > | normalize () |
float | magnitude () |
T | Dot (Vector2 const &vec1) |
Vector2 | Project (Vector2 const &vec1) |
Vector2 | Rotate (float const &angle) |
Vector2 | operator+ (Vector2 const &vec1) |
Vector2 | operator+ (T const &num) |
Vector2 | operator- (Vector2 const &vec1) |
Vector2 | operator- (T const &num) |
template<typename T1 > | |
Vector2 | operator* (T1 const &num) |
Vector2 | operator* (Vector2 const &vec1) |
bool | operator== (Vector2 const &vec1) |
bool | operator!= (Vector2 const &vec1) |
operator Vector2< int > () const | |
operator Vector2< float > () const | |
T * | operator[] (int index) |
template<typename T1 > | |
Vector2< T > | operator* (T1 const &num) |
Public Attributes | ||
struct { | ||
T x | ||
T y | ||
}; | ||