java.lang.Object
org.jhotdraw8.geom.intersect.IntersectCircleCircle
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntersectionResultintersectCircleCircle(double c1x, double c1y, double r1, double c2x, double c2y, double r2, double epsilon) Computes the intersection between the given circles 1 and 2.static IntersectionResultintersectCircleCircle(Point2D c1, double r1, Point2D c2, double r2, double epsilon) static IntersectionResultExintersectCircleCircleEx(double c1x, double c1y, double r1, double c2x, double c2y, double r2) static IntersectionResultExintersectCircleCircleEx(double c1x, double c1y, double r1, double c2x, double c2y, double r2, double epsilon) Computes the intersection between the given circles 1 and 2.static IntersectionResultExintersectCircleCircleEx(Point2D c1, double r1, Point2D c2, double r2) Computes the intersection between circle 1 and circle 2.
-
Method Details
-
intersectCircleCircleEx
public static IntersectionResultEx intersectCircleCircleEx(Point2D c1, double r1, Point2D c2, double r2) Computes the intersection between circle 1 and circle 2.- Parameters:
c1- the center of circle 1r1- the radius of circle 1c2- the center of circle 2r2- the radius of circle 2- Returns:
- computed intersection with parameters of circle 1 at the intersection point
-
intersectCircleCircle
public static IntersectionResult intersectCircleCircle(Point2D c1, double r1, Point2D c2, double r2, double epsilon) -
intersectCircleCircleEx
public static IntersectionResultEx intersectCircleCircleEx(double c1x, double c1y, double r1, double c2x, double c2y, double r2) -
intersectCircleCircleEx
public static 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 1c1y- the center of circle 1r1- the radius of circle 1c2x- the center of circle 2c2y- the center of circle 2r2- the radius of circle 2- Returns:
- computed intersection with parameters of circle 1 at the intersection point
-
intersectCircleCircle
public static 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
IntersectionStatuscodes: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 1c1y- the center of circle 1r1- the radius of circle 1c2x- the center of circle 2c2y- the center of circle 2r2- the radius of circle 2- Returns:
- computed intersection with parameters of circle 1 at the intersection point
-