aboutsummaryrefslogtreecommitdiff
path: root/src/shared/movement/struct.hh
diff options
context:
space:
mode:
authorNicolas James <Eele1Ephe7uZahRie@tutanota.com>2025-02-12 21:57:46 +1100
committerNicolas James <Eele1Ephe7uZahRie@tutanota.com>2025-02-12 21:57:46 +1100
commite4483eca01b48b943cd0461e24a74ae1a3139ed4 (patch)
treeed58c3c246e3af1af337697695d780aa31f6ad9a /src/shared/movement/struct.hh
parent1cc08c51eb4b0f95c30c0a98ad1fc5ad3459b2df (diff)
Update to most recent version (old initial commit)
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