diff options
| author | aura <nw@moneybot.cc> | 2026-08-11 19:10:16 +0200 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-08-11 19:10:16 +0200 |
| commit | 17c07b5f884453130d8be3a6d91d730d80d4f8ae (patch) | |
| tree | 6ec11e5e5f7f0be9ed899196c2897aa76a907de2 /src/util/aabb.h | |
| parent | 1aa17de9188790f049c0edc4281597cb4e535627 (diff) | |
| parent | 0a9d7ce6a0764a87766ebb23cc1ece4c26c8c678 (diff) | |
Merge remote-tracking branch 'origin/day'
Diffstat (limited to 'src/util/aabb.h')
| -rw-r--r-- | src/util/aabb.h | 12 |
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; } |
