summaryrefslogtreecommitdiffstats
path: root/core/aabb.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-06-29 22:24:42 +0500
committeruntodesu <kirill@untode.su>2025-06-29 22:24:42 +0500
commit6cd00aacfa22fed6a54a9b812f6b069ad16feec0 (patch)
treeb77f4e665da3dd235cdb01e7e6ea78c1c02ecf2e /core/aabb.hh
parentf440914e1ae453768d09383f332bc7844e0a700e (diff)
downloadvoxelius-6cd00aacfa22fed6a54a9b812f6b069ad16feec0.tar.bz2
voxelius-6cd00aacfa22fed6a54a9b812f6b069ad16feec0.zip
Move game sources into src subdirectory
Diffstat (limited to 'core/aabb.hh')
-rw-r--r--core/aabb.hh31
1 files changed, 0 insertions, 31 deletions
diff --git a/core/aabb.hh b/core/aabb.hh
deleted file mode 100644
index fe07060..0000000
--- a/core/aabb.hh
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef CORE_AABB_HH
-#define CORE_AABB_HH 1
-#pragma once
-
-#include "core/macros.hh"
-
-class AABB final {
-public:
- DECLARE_DEFAULT_CONSTRUCTOR(AABB);
- explicit AABB(const glm::fvec3& min, const glm::fvec3& max);
- virtual ~AABB(void) = default;
-
- void set_bounds(const glm::fvec3& min, const glm::fvec3& max);
- void set_offset(const glm::fvec3& base, const glm::fvec3& size);
-
- const glm::fvec3& get_min(void) const;
- const glm::fvec3& get_max(void) const;
-
- bool contains(const glm::fvec3& point) const;
- bool intersect(const AABB& other_box) const;
-
- AABB combine_with(const AABB& other_box) const;
- AABB multiply_with(const AABB& other_box) const;
- AABB push(const glm::fvec3& vector) const;
-
-public:
- glm::fvec3 min;
- glm::fvec3 max;
-};
-
-#endif /* CORE_AABB_HH */