aboutsummaryrefslogtreecommitdiff
path: root/src/math/math_vector.h
diff options
context:
space:
mode:
authorvimene <vincent.menegaux@gmail.com>2023-11-26 08:43:14 +0100
committervimene <vincent.menegaux@gmail.com>2023-11-26 08:43:14 +0100
commit5a1d67d1797a3db874e44500e13237d676843185 (patch)
tree17d0f1c2db6cc32fe40fdde4a081b96e8ad0ae13 /src/math/math_vector.h
parentf63febed2a769d0c55192e192a20b8e39f162932 (diff)
downloadengine-5a1d67d1797a3db874e44500e13237d676843185.tar.gz
added namespaces, made every function in engine.cpp static and added warnings' flags
Diffstat (limited to 'src/math/math_vector.h')
-rw-r--r--src/math/math_vector.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/math/math_vector.h b/src/math/math_vector.h
index 668a3f3..28ae81e 100644
--- a/src/math/math_vector.h
+++ b/src/math/math_vector.h
@@ -1,6 +1,8 @@
#ifndef MATH_MATH_VECTOR_H
#define MATH_MATH_VECTOR_H
+namespace engine::math {
+
class MathVector2 {
public:
float x, y;
@@ -66,4 +68,6 @@ MathVector4 operator*(float n, MathVector4 other);
MathVector4 operator*(MathVector4 other, float n);
MathVector4 operator/(MathVector4 other, float n);
+}
+
#endif // MATH_MATH_VECTOR_H