geom/aabb: rename overlaps as inclusive for consistency
This commit is contained in:
parent
94e02fced4
commit
9fe8998476
@ -58,7 +58,7 @@ aabb<S,T>::magnitude (void) const
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
template <size_t S, typename T>
|
template <size_t S, typename T>
|
||||||
bool
|
bool
|
||||||
aabb<S,T>::overlaps (point<S,T> p) const
|
aabb<S,T>::inclusive (point<S,T> p) const
|
||||||
{
|
{
|
||||||
for (size_t i = 0; i < S; ++i)
|
for (size_t i = 0; i < S; ++i)
|
||||||
if (p0[i] > p[i] || p1[i] < p[i])
|
if (p0[i] > p[i] || p1[i] < p[i])
|
||||||
|
@ -33,7 +33,8 @@ namespace util::geom {
|
|||||||
T diameter (void) const;
|
T diameter (void) const;
|
||||||
extent<S,T> magnitude (void) const;
|
extent<S,T> magnitude (void) const;
|
||||||
|
|
||||||
bool overlaps (point<S,T>) const;
|
/// tests whether a point lies within the region, inclusive of borders
|
||||||
|
bool inclusive (point<S,T>) const;
|
||||||
|
|
||||||
point<S,T> closest (point<S,T>) const;
|
point<S,T> closest (point<S,T>) const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user