From e4483eca01b48b943cd0461e24a74ae1a3139ed4 Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Wed, 12 Feb 2025 21:57:46 +1100 Subject: Update to most recent version (old initial commit) --- src/shared/movement/struct.hh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/shared/movement/struct.hh (limited to 'src/shared/movement/struct.hh') 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 -- cgit v1.2.3