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
|
bool
|
||||||
aabb<S,T>::inclusive (point<S,T> p) const
|
aabb<S,T>::inclusive (point<S,T> p) const
|
||||||
{
|
{
|
||||||
for (size_t i = 0; i < S; ++i)
|
return all (p0 <= p && p1 >= p);
|
||||||
if (p0[i] > p[i] || p1[i] < p[i])
|
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user