Crazy Eddie's GUI System
0.8.5
|
Class used as a two dimensional vector (aka a Point) More...
Public Types | |
typedef T | value_type |
Public Member Functions | |
Vector2 (const T x, const T y) | |
Vector2 (const Vector2 &v) | |
Vector2 & | operator*= (const Vector2 &vec) |
Vector2 & | operator/= (const Vector2 &vec) |
Vector2 & | operator+= (const Vector2 &vec) |
Vector2 & | operator-= (const Vector2 &vec) |
Vector2 | operator+ (const Vector2 &vec) const |
Vector2 | operator- (const Vector2 &vec) const |
Vector2 | operator* (const Vector2 &vec) const |
Vector2 | operator/ (const Vector2 &vec) const |
Vector2 | operator* (const T c) const |
Vector2 & | operator*= (const T c) |
Vector2 | operator/ (const T c) const |
bool | operator== (const Vector2 &vec) const |
bool | operator!= (const Vector2 &vec) const |
Static Public Member Functions | |
static Vector2 | zero () |
finger saving alias for Vector2(0, 0) | |
static Vector2 | one () |
finger saving alias for Vector2(1, 1) | |
static Vector2 | one_x () |
finger saving alias for Vector2(1, 0) | |
static Vector2 | one_y () |
finger saving alias for Vector2(0, 1) | |
Public Attributes | |
T | d_x |
T | d_y |
Friends | |
std::ostream & | operator<< (std::ostream &s, const Vector2 &v) |
allows writing the vector2 to std ostream | |
Class used as a two dimensional vector (aka a Point)