Math/Sphere: Fix ExtendTo method

This commit is contained in:
Lynix 2016-12-15 19:27:05 +01:00
parent d015d6e85e
commit 937fdef953
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ namespace Nz
template<typename T> template<typename T>
Sphere<T>& Sphere<T>::ExtendTo(T X, T Y, T Z) Sphere<T>& Sphere<T>::ExtendTo(T X, T Y, T Z)
{ {
radius = std::max(radius, Distance(X, Y, Z)); radius = std::max(radius, radius + Distance(X, Y, Z));
return *this; return *this;
} }