From 2973df584978d9aae6f164ce0204179c8a28b3ae Mon Sep 17 00:00:00 2001 From: 2lag <96544487+2lag@users.noreply.github.com> Date: Sat, 8 Aug 2026 17:33:36 +0200 Subject: console, textbox changes, some other shit --- src/util/aabb.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/util/aabb.h') diff --git a/src/util/aabb.h b/src/util/aabb.h index 9dc4b20..6e895fc 100644 --- a/src/util/aabb.h +++ b/src/util/aabb.h @@ -15,21 +15,21 @@ inline F32 aabb_support_radius( const AABB& aabb, const VEC3& dir ) { } inline U8 aabb_intersects( const AABB& aabb, const AABB& other ) { - if (aabb.min.x > other.max.x || aabb.max.x < other.min.x) + if(aabb.min.x > other.max.x || aabb.max.x < other.min.x) return 0; - if (aabb.min.y > other.max.y || aabb.max.y < other.min.y) + if(aabb.min.y > other.max.y || aabb.max.y < other.min.y) return 0; - if (aabb.min.z > other.max.z || aabb.max.z < other.min.z) + if(aabb.min.z > other.max.z || aabb.max.z < other.min.z) return 0; return 1; } inline U8 aabb_contains_point( const AABB& aabb, const VEC3& point ) { - if (point.x < aabb.min.x || point.x > aabb.max.x) + if(point.x < aabb.min.x || point.x > aabb.max.x) return 0; - if (point.y < aabb.min.y || point.y > aabb.max.y) + if(point.y < aabb.min.y || point.y > aabb.max.y) return 0; - if (point.z < aabb.min.z || point.z > aabb.max.z) + if(point.z < aabb.min.z || point.z > aabb.max.z) return 0; return 1; } -- cgit v1.2.3