[TestCase(4, 5, 6, 13.5262794416288, 10.5, 7, true)] // Intersection, Translated and Rotated to quadrant 1 public static void AreIntersecting_Static( double x1, double y1, double r1, double x2, double y2, double r2, bool expectedResult) { CircularCurve curve1 = new CircularCurve(r1, new CartesianCoordinate(x1, y1)); curve1.Tolerance = Tolerance; CircularCurve curve2 = new CircularCurve(r2, new CartesianCoordinate(x2, y2)); curve2.Tolerance = Tolerance; bool result = IntersectionCircularCircular.AreIntersecting(curve1, curve2); Assert.AreEqual(expectedResult, result); }
/// <summary> /// Determines if the curves intersect each other. /// </summary> /// <param name="curve1">The curve1.</param> /// <param name="curve2">The curve2.</param> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns> /// <exception cref="NotImplementedException"></exception> public static bool AreIntersecting(CircularCurve curve1, CircularCurve curve2) { return(IntersectionCircularCircular.AreIntersecting(curve1, curve2)); }