Math/Sphere: Fix compilation
This commit is contained in:
parent
f5f6c859d7
commit
d015d6e85e
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue