java.lang.Object
org.jhotdraw8.geom.intersect.IntersectEllipseLine
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull IntersectionResultintersectEllipseLine(double acx, double acy, double arx, double ary, double b0x, double b0y, double b1x, double b1y) static @NonNull IntersectionResultintersectEllipseLine(double cx, double cy, double rx, double ry, double x0, double y0, double x1, double y1, double epsilon) static @NonNull IntersectionResultintersectEllipseLine(@NonNull Point2D ac, double arx, double ary, @NonNull Point2D b0, @NonNull Point2D b1) Computes the intersection between an ellipse and a line.static @NonNull IntersectionResultExintersectEllipseLineEx(double acx, double acy, double arx, double ary, double b0x, double b0y, double b1x, double b1y) static @NonNull IntersectionResultExintersectEllipseLineEx(double acx, double acy, double arx, double ary, double b0x, double b0y, double b1x, double b1y, double epsilon) static @NonNull IntersectionResultExintersectEllipseLineEx(@NonNull Point2D ac, double arx, double ary, @NonNull Point2D b0, @NonNull Point2D b1) static @NonNull IntersectionResultintersectLineEllipse(double x0, double y0, double x1, double y1, double cx, double cy, double rx, double ry, double epsilon) static @NonNull IntersectionResultintersectLineEllipse(@NonNull Point2D a0, @NonNull Point2D a1, @NonNull Point2D ec, double rx, double ry) Computes the intersection between a line and an ellipse.static @NonNull IntersectionResultComputes the intersection between a line and an ellipse.static IntersectionResultExintersectLineEllipseEx(double x0, double y0, double x1, double y1, double cx, double cy, double rx, double ry) static IntersectionResultExintersectLineEllipseEx(double x0, double y0, double x1, double y1, double cx, double cy, double rx, double ry, double epsilon)
-
Method Details
-
intersectEllipseLine
public static @NonNull IntersectionResult intersectEllipseLine(@NonNull Point2D ac, double arx, double ary, @NonNull Point2D b0, @NonNull Point2D b1) Computes the intersection between an ellipse and a line.- Parameters:
ac- the center of the ellipsearx- the x-radius of the ellipseary- the y-radius of the ellipseb0- point 0 of the lineb1- point 1 of the line- Returns:
- computed intersection
-
intersectEllipseLineEx
-
intersectEllipseLine
public static @NonNull IntersectionResult intersectEllipseLine(double acx, double acy, double arx, double ary, double b0x, double b0y, double b1x, double b1y) -
intersectEllipseLineEx
public static @NonNull IntersectionResultEx intersectEllipseLineEx(double acx, double acy, double arx, double ary, double b0x, double b0y, double b1x, double b1y) -
intersectEllipseLineEx
public static @NonNull IntersectionResultEx intersectEllipseLineEx(double acx, double acy, double arx, double ary, double b0x, double b0y, double b1x, double b1y, double epsilon) -
intersectEllipseLine
public static @NonNull IntersectionResult intersectEllipseLine(double cx, double cy, double rx, double ry, double x0, double y0, double x1, double y1, double epsilon) -
intersectLineEllipse
public static @NonNull IntersectionResult intersectLineEllipse(@NonNull Point2D a0, @NonNull Point2D a1, @NonNull AABB e) Computes the intersection between a line and an ellipse.The intersection will contain the parameters 't1' of the line in range [0,1].
- Parameters:
a0- point 0 of the linea1- point 1 of the linee- the bounds of the ellipse- Returns:
- computed intersection
-
intersectLineEllipse
public static @NonNull IntersectionResult intersectLineEllipse(@NonNull Point2D a0, @NonNull Point2D a1, @NonNull Point2D ec, double rx, double ry) Computes the intersection between a line and an ellipse.The intersection will contain the parameters 't1' of the line in range [0,1].
- Parameters:
a0- point 0 of the linea1- point 1 of the lineec- the center of the ellipserx- the x-radius of the ellipsery- the y-radius of the ellipse- Returns:
- computed intersection
-
intersectLineEllipse
public static @NonNull IntersectionResult intersectLineEllipse(double x0, double y0, double x1, double y1, double cx, double cy, double rx, double ry, double epsilon) - Parameters:
x0-y0-x1-y1-cx-cy-rx-ry-epsilon-- Returns:
-
intersectLineEllipseEx
public static IntersectionResultEx intersectLineEllipseEx(double x0, double y0, double x1, double y1, double cx, double cy, double rx, double ry) -
intersectLineEllipseEx
public static IntersectionResultEx intersectLineEllipseEx(double x0, double y0, double x1, double y1, double cx, double cy, double rx, double ry, double epsilon)
-