geom/aabb: rename overlaps as inclusive for consistency

This commit is contained in:
Danny Robson 2017-08-24 17:11:48 +10:00
parent 94e02fced4
commit 9fe8998476
2 changed files with 3 additions and 2 deletions

View File

@ -58,7 +58,7 @@ aabb<S,T>::magnitude (void) const
//-----------------------------------------------------------------------------
template <size_t S, typename T>
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)
if (p0[i] > p[i] || p1[i] < p[i])

View File

@ -33,7 +33,8 @@ namespace util::geom {
T diameter (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;