summaryrefslogtreecommitdiff
path: root/src/util/aabb.h
diff options
context:
space:
mode:
author2lag <96544487+2lag@users.noreply.github.com>2026-08-08 17:33:36 +0200
committer2lag <96544487+2lag@users.noreply.github.com>2026-08-08 17:33:36 +0200
commit2973df584978d9aae6f164ce0204179c8a28b3ae (patch)
treec1b793c8e0d17aeb66c5197bc28acca84b2c98ab /src/util/aabb.h
parente540910745aad31378452eec25aacfb3f346191a (diff)
console, textbox changes, some other shit
Diffstat (limited to 'src/util/aabb.h')
-rw-r--r--src/util/aabb.h12
1 files changed, 6 insertions, 6 deletions
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;
}