update sweeplineff
This commit is contained in:
@@ -25,7 +25,7 @@ namespace TMI_practicum
|
||||
{
|
||||
IList<Intersection> intersections;
|
||||
double d = Distance(c1);
|
||||
if (d > R + c1.R || d < Math.Abs(R - c1.R) || d == 0.0 && R - c1.R == 0.0) return null;
|
||||
if (d > R + c1.R || d < Math.Abs(R - c1.R) || (d == 0.0 && R - c1.R == 0.0)) return null;
|
||||
|
||||
double a = Math.Round((R * R - c1.R * c1.R + d * d) / (2.0*d), 15);
|
||||
double px = Math.Round(X + a * (c1.X - X) / d, 15);
|
||||
|
Reference in New Issue
Block a user