#include <vector.hpp>
Definition at line 18 of file vector.hpp.
Public Member Functions | |
vec2 () | |
vec2 (float x, float y) | |
vec2 (const float *f) | |
float | length () const |
vec2 | rotate (float d) const |
float | squared_length () const |
void | normalize () |
vec2 | rotate (vec2 v) const |
vec2 | hat () const |
vec2 | perp () const |
vec2 | flip () const |
void | snap (float epsilon) |
vec2 | operator- () const |
vec2 & | operator-= (vec2 v) |
vec2 & | operator+= (vec2 v) |
vec2 & | operator/= (float f) |
vec2 | operator+ (vec2 v) const |
vec2 | operator- (vec2 v) const |
vec2 | operator * (float f) const |
vec2 | operator/ (float f) const |
Public Attributes | |
float | x |
float | y |