aabb: rename expand to cover
This commit is contained in:
parent
e1b03e0735
commit
a4c22059ed
2
aabb.cpp
2
aabb.cpp
@ -61,7 +61,7 @@ AABB<S,T>::overlaps (point<S,T> p) const
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
template <size_t S, typename T>
|
template <size_t S, typename T>
|
||||||
void
|
void
|
||||||
AABB<S,T>::expand (point<S,T> p)
|
AABB<S,T>::cover (point<S,T> p)
|
||||||
{
|
{
|
||||||
p0 = min (p, p0);
|
p0 = min (p, p0);
|
||||||
p1 = max (p, p1);
|
p1 = max (p, p1);
|
||||||
|
2
aabb.hpp
2
aabb.hpp
@ -37,7 +37,7 @@ namespace util {
|
|||||||
|
|
||||||
bool overlaps (point<S,T>) const;
|
bool overlaps (point<S,T>) const;
|
||||||
|
|
||||||
void expand (point<S,T>);
|
void cover (point<S,T>);
|
||||||
|
|
||||||
AABB<S,T> operator+ (vector<S,T>) const;
|
AABB<S,T> operator+ (vector<S,T>) const;
|
||||||
AABB<S,T> operator- (vector<S,T>) const;
|
AABB<S,T> operator- (vector<S,T>) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user