List of all members.
Public Member Functions |
|
| Vec2 (T x=0, T y=0) |
|
void | setval (T xs, T ys) |
|
const Vec2< T > | operator* (T mul) const |
|
const Vec2< T > | operator* (const Vec2< T > &mul) const |
|
const Vec2< T > | operator/ (T div) const |
|
const Vec2< T > | operator/ (const Vec2< T > &div) const |
|
const Vec2< T > | operator+ (T add) const |
|
const Vec2< T > | operator+ (const Vec2< T > &add) const |
|
const Vec2< T > | operator- (T subtract) const |
|
const Vec2< T > | operator- (const Vec2< T > &subtract) const |
|
Vec2< T > | operator*= (T mul) |
|
Vec2< T > | operator*= (const Vec2< T > &mul) |
|
Vec2< T > | operator/= (T div) |
|
Vec2< T > | operator/= (const Vec2< T > &div) |
|
Vec2< T > | operator+= (T add) |
|
Vec2< T > | operator+= (const Vec2< T > &add) |
|
Vec2< T > | operator-= (T subtract) |
|
Vec2< T > | operator-= (const Vec2< T > &subtract) |
|
bool | operator== (const Vec2< T > &other) |
|
T | length () const |
|
void | limit (T limit) |
|
Vec2< T > | limited (const Vec2< T > &limit) const |
|
void | normalize () |
|
Vec2< T > | normalized () const |
|
T | distance (const Vec2< T > &other) const |
Public Attributes |
|
T | x |
|
T | y |
Detailed Description
template<class T>
class math::Vec2< T >
Definition at line 18 of file Vector.h.
The documentation for this class was generated from the following file: