Fix for incorrect use of abs() in intersect_sphere_sphere_2d

This commit is contained in:
2014-01-09 03:07:17 +11:00
parent d5c9b509ec
commit cdeb3c3922

View File

@@ -298,7 +298,7 @@ static PyObject *M_Geometry_intersect_sphere_sphere_2d(PyObject *UNUSED(self), P
if (/* out of range */
(dist > rad_a + rad_b) ||
/* fully-contained in the other */
(dist < abs(rad_a - rad_b)) ||
(dist < fabsf(rad_a - rad_b)) ||
/* co-incident */
(dist < FLT_EPSILON))
{