summaryrefslogtreecommitdiffstats
path: root/core/math/aabb.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-09-11 15:48:53 +0500
committeruntodesu <kirill@untode.su>2025-09-11 15:48:53 +0500
commitd0fbd68055e3f4a796330cc8acc6c0954b5327ff (patch)
treee581014ea02711efa5e71f00f9862e5bca58f2ed /core/math/aabb.hh
parentcbd823aa2154a956e7da4319eecbf7afc10441ae (diff)
downloadvoxelius-d0fbd68055e3f4a796330cc8acc6c0954b5327ff.tar.bz2
voxelius-d0fbd68055e3f4a796330cc8acc6c0954b5327ff.zip
Run clang-format across the project
Diffstat (limited to 'core/math/aabb.hh')
-rw-r--r--core/math/aabb.hh56
1 files changed, 28 insertions, 28 deletions
diff --git a/core/math/aabb.hh b/core/math/aabb.hh
index b843cd9..bff8e04 100644
--- a/core/math/aabb.hh
+++ b/core/math/aabb.hh
@@ -1,28 +1,28 @@
-#pragma once
-
-namespace math
-{
-class AABB final {
-public:
- AABB(void) = default;
- 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;
-};
-} // namespace math
+#pragma once
+
+namespace math
+{
+class AABB final {
+public:
+ AABB(void) = default;
+ 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;
+};
+} // namespace math