2d vector object to represent position and velocity. More...
#include <Vec2.hpp>
Public Member Functions | |
Vec2 () | |
default initializer More... | |
Vec2 (float x, float y) | |
specified initializer More... | |
Vec2 | operator+ (Vec2 const &rhs) |
specify 2-d vector addition More... | |
Vec2 & | operator+= (Vec2 const &rhs) |
specify 2-d vector incrementation More... | |
Vec2 | operator* (float rhs) |
specify 2-d vector scaling by multipling with a number More... | |
Public Attributes | |
float | x |
float | y |
the x and y values More... | |
2d vector object to represent position and velocity.
|
inline |
default initializer
|
inline |
specified initializer
|
inline |
specify 2-d vector scaling by multipling with a number
float Vec2::x |
float Vec2::y |
the x and y values