geom/aabb: add an aabb/point intersection test

This commit is contained in:
Danny Robson 2019-08-30 10:14:52 +10:00
parent f4190012bf
commit 33b141eb3a

View File

@ -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);
}
}