#include <vec.h>
Public Member Functions | |
| float | dot (const Vec2< T > &a) |
| const T * | getPointer () const |
| bool | iszero () |
| float | length () const |
| float | length2 () const |
| void | normalize () |
| float | operator* (const Vec2< T > &v) |
| Vec2< T > | operator* (const T d) |
| Vec2< T > & | operator*= (const T d) |
| Vec2< T > | operator+ (const Vec2< T > &a) |
| Vec2< T > & | operator+= (const Vec2< T > &v) |
| Vec2< T > | operator- (const Vec2< T > &a) |
| Vec2< T > & | operator-= (const Vec2< T > &v) |
| Vec2< T > & | operator/= (const T d) |
| Vec2< T > & | operator= (const Vec2< T > &v) |
| T & | operator[] (int i) |
| T | operator[] (int i) const |
| Vec2 () | |
| Vec2 (const T x, const T y) | |
| Vec2 (const Vec2< T > &v) | |
| void | zeroElements () |
Private Attributes | |
| T | n [2] |
| const T* Vec2< T >::getPointer | ( | ) | const [inline] |
| T Vec2< T >::operator[] | ( | int | i | ) | const [inline] |
| void Vec2< T >::zeroElements | ( | ) | [inline] |