dEngine
Simple 2D C++ game engine
|
A vector composed of two points. More...
#include <Vec2.h>
Public Member Functions | |
Vec2 () | |
Create a new Vec2. More... | |
Vec2 (float x, float y) | |
Create a new Vec2 at the specified points. More... | |
Public Attributes | |
float | x |
X position of the vector. More... | |
float | y |
Y position of the vector. More... | |
A vector composed of two points.
Vec2::Vec2 | ( | ) |
Create a new Vec2.
Vec2::Vec2 | ( | float | x, |
float | y | ||
) |
Create a new Vec2 at the specified points.
x | The x position of the vector |
y | The y position of the vector |
float dengine::Vec2::x |
X position of the vector.
Referenced by dengine::Collider::Update().
float dengine::Vec2::y |
Y position of the vector.
Referenced by dengine::Collider::Update().