aboutsummaryrefslogtreecommitdiff
path: root/include/Vec.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/Vec.hpp')
-rw-r--r--include/Vec.hpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/Vec.hpp b/include/Vec.hpp
index 339a98b..87e9bea 100644
--- a/include/Vec.hpp
+++ b/include/Vec.hpp
@@ -3,12 +3,20 @@
#include "types.hpp"
namespace amalgine {
+ struct vec2f {
+ f32 x;
+ f32 y;
+
+ vec2f() : x(0.0f), y(0.0f) {}
+ vec2f(f32 x, f32 y) : x(x), y(y) {}
+ };
+
struct vec3f {
f32 x;
f32 y;
f32 z;
- vec3f() : x(0.0f), y(0.0f) {}
+ vec3f() : x(0.0f), y(0.0f), z(0.0f) {}
vec3f(f32 x, f32 y, f32 z) : x(x), y(y), z(z) {}
};
} \ No newline at end of file