aabb: add expand to include point
This commit is contained in:
parent
5d9c2b1696
commit
800937086b
10
aabb.cpp
10
aabb.cpp
@ -45,6 +45,16 @@ AABB<S,T>::magnitude (void) const
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
template <size_t S, typename T>
|
||||
void
|
||||
AABB<S,T>::expand (point<S,T> p)
|
||||
{
|
||||
p0 = min (p, p0);
|
||||
p1 = max (p, p1);
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
template <size_t S, typename T>
|
||||
AABB<S,T>
|
||||
|
Loading…
Reference in New Issue
Block a user