Math/Sphere: Fix compilation

This commit is contained in:
Lynix 2016-12-15 19:10:44 +01:00
parent f5f6c859d7
commit d015d6e85e
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ namespace Nz
template<typename T> template<typename T>
bool Sphere<T>::Intersect(const Sphere& sphere) const bool Sphere<T>::Intersect(const Sphere& sphere) const
{ {
return GetPosition().SquaredDistance(sphere.x, sphere.y, sphere.z) <= IntegralPow(radius + sphere.radius, 2); return GetPosition().SquaredDistance(Vector3<T>(sphere.x, sphere.y, sphere.z)) <= IntegralPow(radius + sphere.radius, 2);
} }
/*! /*!