dEngine
Simple 2D C++ game engine
Vec2.h
Go to the documentation of this file.
1 #ifndef DENGINE_VEC2_H
2 #define DENGINE_VEC2_H
3 
7 namespace dengine {
11  class Vec2 {
12  public:
16  Vec2();
17 
23  Vec2(float x, float y);
24 
28  float x;
32  float y;
33  };
34 }
35 
36 #endif //DENGINE_VEC2_H
float x
X position of the vector.
Definition: Vec2.h:28
A vector composed of two points.
Definition: Vec2.h:11
Vec2()
Create a new Vec2.
Definition: Vec2.cpp:5
float y
Y position of the vector.
Definition: Vec2.h:32
The namespace containing the engine's code.
Definition: Collider.h:9