aboutsummaryrefslogtreecommitdiff
path: root/src/shared/movement/struct.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/movement/struct.hh')
-rw-r--r--src/shared/movement/struct.hh20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/shared/movement/struct.hh b/src/shared/movement/struct.hh
new file mode 100644
index 0000000..7cfcc0f
--- /dev/null
+++ b/src/shared/movement/struct.hh
@@ -0,0 +1,20 @@
+#ifndef SHARED_MOVEMENT_STRUCT_HH_
+#define SHARED_MOVEMENT_STRUCT_HH_
+
+#include "glm/glm.hpp"
+
+namespace shared {
+namespace movement {
+
+constexpr float EPSILON = 0.0001f; // counteract arithmetic errors
+constexpr float EPSILON2 = EPSILON + 2 * EPSILON * EPSILON;
+
+struct aabb {
+ glm::vec3 min;
+ glm::vec3 max;
+};
+
+} // namespace movement
+} // namespace shared
+
+#endif