geom/aabb: use vector operations for inclusive test
This commit is contained in:
parent
9fe8998476
commit
d47f52b63f
@ -60,11 +60,7 @@ template <size_t S, typename T>
|
||||
bool
|
||||
aabb<S,T>::inclusive (point<S,T> p) const
|
||||
{
|
||||
for (size_t i = 0; i < S; ++i)
|
||||
if (p0[i] > p[i] || p1[i] < p[i])
|
||||
return false;
|
||||
|
||||
return true;
|
||||
return all (p0 <= p && p1 >= p);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user