#include <vector.h>
Public Member Functions | |
vec2 () | |
vec2 (float x, float y) | |
vec2 & | operator= (const vec2 &vector) |
vec2 | operator+ (const vec2 &vector) |
vec2 | operator- (const vec2 &vector) |
vec2 & | operator*= (const float scalar) |
vec2 | operator* (const float scalar) const |
vec2 & | normalize () |
float | magnitude () |
Public Attributes | |
float | x |
float | y |
vec2::vec2 | ( | ) |
vec2::vec2 | ( | float | x, |
float | y | ||
) |
float vec2::magnitude | ( | ) |
vec2 & vec2::normalize | ( | ) |
vec2 vec2::operator* | ( | const float | scalar | ) | const |
vec2 & vec2::operator*= | ( | const float | scalar | ) |
float vec2::x |
float vec2::y |