geom/aabb: add an aabb/point intersection test
This commit is contained in:
parent
f4190012bf
commit
33b141eb3a
@ -169,6 +169,14 @@ namespace cruft::geom {
|
||||
typedef aabb<3,float> aabb3f;
|
||||
typedef aabb<3,unsigned> aabb3u;
|
||||
typedef aabb<3,int> aabb3i;
|
||||
|
||||
|
||||
template <size_t S, typename T>
|
||||
bool
|
||||
intersects (aabb<S,T> const &a, point<S,T> const &b) noexcept
|
||||
{
|
||||
return a.inclusive (b);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user