Added Box::GetSquaredBoundingSphere
Former-commit-id: 12ecb5d84f44e39ddacb96b83a897f618337c2e1
This commit is contained in:
@@ -227,6 +227,12 @@ T NzBox<T>::GetRadius() const
|
||||
return std::sqrt(GetSquaredRadius());
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzSphere<T> NzBox<T>::GetSquaredBoundingSphere() const
|
||||
{
|
||||
return NzSphere<T>(GetCenter(), GetSquaredRadius());
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
T NzBox<T>::GetSquaredRadius() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user