#include <vector2.h>
Public Member Functions | |
Vector2 () | |
Vector2 (const T x0, const T y0) | |
void | operator() (const T x0, const T y0) |
bool | operator== (const Vector2< T > &v) |
bool | operator!= (const Vector2< T > &v) |
Vector2< T > | operator- (void) const |
Vector2< T > | operator+ (const Vector2< T > &v) const |
Vector2< T > | operator- (const Vector2< T > &v) const |
Vector2< T > | operator* (const T num) const |
Vector2< T > | operator/ (const T num) const |
Vector2< T > & | operator+= (const Vector2< T > &v) |
Vector2< T > & | operator-= (const Vector2< T > &v) |
Vector2< T > & | operator*= (const T num) |
Vector2< T > & | operator/= (const T num) |
T | operator* (const Vector2< T > &v) const |
T | length_squared () const |
T | length () const |
void | normalize () |
Vector2< T > | normalized () const |
void | reflect (const Vector2< T > &n) |
void | project (const Vector2< T > &v) |
Vector2< T > | projected (const Vector2< T > &v) |
T | angle (const Vector2< T > &v1, const Vector2< T > &v2) |
T | angle_normalized (const Vector2< T > &v1, const Vector2< T > &v2) |
Public Attributes | |
T | x |
T | y |
Definition at line 29 of file vector2.h.
T Vector2< T >::length | ( | ) | const [inline] |
T Vector2< T >::length_squared | ( | ) | const [inline] |
void Vector2< T >::normalize | ( | void | ) | [inline] |
void Vector2< T >::operator() | ( | const T | x0, | |
const T | y0 | |||
) | [inline] |