removed stff

This commit is contained in:
2026-06-29 09:54:34 +03:00
parent 71e256d033
commit 235917008c
+8 -5
View File
@@ -8,7 +8,12 @@
namespace omath::primitives
{
enum class UpAxis { X, Y, Z };
enum class UpAxis
{
X,
Y,
Z
};
template<class Type, UpAxis Up = UpAxis::Y>
struct Aabb final
@@ -33,7 +38,6 @@ namespace omath::primitives
return (max - min) / static_cast<Type>(2);
}
template<UpAxis Up = UpAxis::Y>
[[nodiscard]]
constexpr Vector3<Type> top() const noexcept
{
@@ -48,7 +52,6 @@ namespace omath::primitives
std::unreachable();
}
template<UpAxis Up = UpAxis::Y>
[[nodiscard]]
constexpr Vector3<Type> bottom() const noexcept
{
@@ -77,8 +80,8 @@ namespace omath::primitives
[[nodiscard]]
constexpr bool is_collide(const Aabb& other) const noexcept
{
return min.x <= other.max.x && max.x >= other.min.x &&
min.y <= other.max.y && max.y >= other.min.y &&min.z <= other.max.z && max.z >= other.min.z;
return min.x <= other.max.x && max.x >= other.min.x && min.y <= other.max.y && max.y >= other.min.y
&& min.z <= other.max.z && max.z >= other.min.z;
}
};
} // namespace omath::primitives