summaryrefslogtreecommitdiffstats
path: root/game/shared/chunk_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 /game/shared/chunk_aabb.hh
parentf440914e1ae453768d09383f332bc7844e0a700e (diff)
downloadvoxelius-6cd00aacfa22fed6a54a9b812f6b069ad16feec0.tar.bz2
voxelius-6cd00aacfa22fed6a54a9b812f6b069ad16feec0.zip
Move game sources into src subdirectory
Diffstat (limited to 'game/shared/chunk_aabb.hh')
-rw-r--r--game/shared/chunk_aabb.hh32
1 files changed, 0 insertions, 32 deletions
diff --git a/game/shared/chunk_aabb.hh b/game/shared/chunk_aabb.hh
deleted file mode 100644
index 7a35dd4..0000000
--- a/game/shared/chunk_aabb.hh
+++ /dev/null
@@ -1,32 +0,0 @@
-#ifndef SHARED_CHUNK_AABB
-#define SHARED_CHUNK_AABB 1
-#pragma once
-
-#include "core/macros.hh"
-
-#include "shared/types.hh"
-
-class ChunkAABB final {
-public:
- DECLARE_DEFAULT_CONSTRUCTOR(ChunkAABB);
- virtual ~ChunkAABB(void) = default;
-
- void set_bounds(const chunk_pos& min, const chunk_pos& max);
- void set_offset(const chunk_pos& base, const chunk_pos& size);
-
- const chunk_pos& get_min(void) const;
- const chunk_pos& get_max(void) const;
-
- bool contains(const chunk_pos& point) const;
- bool intersect(const ChunkAABB& other_box) const;
-
- ChunkAABB combine_with(const ChunkAABB& other_box) const;
- ChunkAABB multiply_with(const ChunkAABB& other_box) const;
- ChunkAABB push(const chunk_pos& vector) const;
-
-public:
- chunk_pos min;
- chunk_pos max;
-};
-
-#endif /* SHARED_CHUNK_AABB */