From 8bcbd2729388edc63c82d77d314b583af1447c49 Mon Sep 17 00:00:00 2001 From: untodesu Date: Sun, 14 Sep 2025 19:16:44 +0500 Subject: Cleanup math with qfengine ports again --- core/math/aabb.hh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'core/math/aabb.hh') diff --git a/core/math/aabb.hh b/core/math/aabb.hh index ed3cf39..9a64aad 100644 --- a/core/math/aabb.hh +++ b/core/math/aabb.hh @@ -4,7 +4,7 @@ namespace math { -template +template class AABB { public: using value_type = T; @@ -35,27 +35,27 @@ namespace math using AABBf = AABB; } // namespace math -template +template constexpr math::AABB::AABB(const vector_type& start, const vector_type& end) { set_bounds(start, end); } -template +template constexpr void math::AABB::set_bounds(const vector_type& start, const vector_type& end) { min = start; max = end; } -template +template constexpr void math::AABB::set_offset(const vector_type& base, const vector_type& size) { min = base; max = base + size; } -template +template constexpr bool math::AABB::contains(const vector_type& point) const { auto result = true; @@ -65,7 +65,7 @@ constexpr bool math::AABB::contains(const vector_type& point) const return result; } -template +template constexpr bool math::AABB::intersect(const AABB& other_box) const { auto result = true; @@ -75,7 +75,7 @@ constexpr bool math::AABB::intersect(const AABB& other_box) const return result; } -template +template constexpr math::AABB math::AABB::combine(const AABB& other_box) const { AABB result; @@ -88,7 +88,7 @@ constexpr math::AABB math::AABB::combine(const AABB& other_box return result; } -template +template constexpr math::AABB math::AABB::multiply(const AABB& other_box) const { AABB result; @@ -101,7 +101,7 @@ constexpr math::AABB math::AABB::multiply(const AABB& other_bo return result; } -template +template constexpr math::AABB math::AABB::push(const vector_type& vector) const { AABB result; -- cgit