Class IntersectCircleCircle

java.lang.Object
org.jhotdraw8.geom.intersect.IntersectCircleCircle

public class IntersectCircleCircle extends Object
  • Method Details

    • intersectCircleCircleEx

      public static @NonNull IntersectionResultEx intersectCircleCircleEx(@NonNull Point2D c1, double r1, @NonNull Point2D c2, double r2)
      Computes the intersection between circle 1 and circle 2.
      Parameters:
      c1 - the center of circle 1
      r1 - the radius of circle 1
      c2 - the center of circle 2
      r2 - the radius of circle 2
      Returns:
      computed intersection with parameters of circle 1 at the intersection point
    • intersectCircleCircle

      public static @NonNull IntersectionResult intersectCircleCircle(@NonNull Point2D c1, double r1, @NonNull Point2D c2, double r2, double epsilon)
    • intersectCircleCircleEx

      public static @NonNull IntersectionResultEx intersectCircleCircleEx(double c1x, double c1y, double r1, double c2x, double c2y, double r2)
    • intersectCircleCircleEx

      public static @NonNull IntersectionResultEx intersectCircleCircleEx(double c1x, double c1y, double r1, double c2x, double c2y, double r2, double epsilon)
      Computes the intersection between the given circles 1 and 2.
      Parameters:
      c1x - the center of circle 1
      c1y - the center of circle 1
      r1 - the radius of circle 1
      c2x - the center of circle 2
      c2y - the center of circle 2
      r2 - the radius of circle 2
      Returns:
      computed intersection with parameters of circle 1 at the intersection point
    • intersectCircleCircle

      public static @NonNull IntersectionResult intersectCircleCircle(double c1x, double c1y, double r1, double c2x, double c2y, double r2, double epsilon)
      Computes the intersection between the given circles 1 and 2.

      This method can produce the following IntersectionStatus codes:

      IntersectionStatus.INTERSECTION
      The circles intersect at the IntersectionPoints given in the result.
      IntersectionStatus.NO_INTERSECTION_INSIDE
      Circle 1 is inside circle 2.
      IntersectionStatus.NO_INTERSECTION_OUTSIDE
      Circle 1 is outside circle 2.
      IntersectionStatus.NO_INTERSECTION_COINCIDENT
      Circle 1 is same as circle 2 up to the given epsilon.
      Parameters:
      c1x - the center of circle 1
      c1y - the center of circle 1
      r1 - the radius of circle 1
      c2x - the center of circle 2
      c2y - the center of circle 2
      r2 - the radius of circle 2
      Returns:
      computed intersection with parameters of circle 1 at the intersection point