Math/Sphere: Fix ExtendTo method
This commit is contained in:
parent
d015d6e85e
commit
937fdef953
|
|
@ -170,7 +170,7 @@ namespace Nz
|
|||
template<typename T>
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue