java.lang.Object
org.jhotdraw8.geom.intersect.IntersectEllipseLine
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntersectionResultintersectEllipseLine(double acx, double acy, double arx, double ary, double b0x, double b0y, double b1x, double b1y) static IntersectionResultintersectEllipseLine(double cx, double cy, double rx, double ry, double x0, double y0, double x1, double y1, double epsilon) static IntersectionResultintersectEllipseLine(Point2D ac, double arx, double ary, Point2D b0, Point2D b1) Computes the intersection between an ellipse and a line.static IntersectionResultExintersectEllipseLineEx(double acx, double acy, double arx, double ary, double b0x, double b0y, double b1x, double b1y) static IntersectionResultExintersectEllipseLineEx(double acx, double acy, double arx, double ary, double b0x, double b0y, double b1x, double b1y, double epsilon) static IntersectionResultExintersectEllipseLineEx(Point2D ac, double arx, double ary, Point2D b0, Point2D b1) static IntersectionResultintersectLineEllipse(double x0, double y0, double x1, double y1, double cx, double cy, double rx, double ry, double epsilon) static IntersectionResultintersectLineEllipse(Point2D a0, Point2D a1, Point2D ec, double rx, double ry) Computes the intersection between a line and an ellipse.static IntersectionResultintersectLineEllipse(Point2D a0, Point2D a1, AABB e) Computes 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 IntersectionResult intersectEllipseLine(Point2D ac, double arx, double ary, Point2D b0, 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
public static IntersectionResultEx intersectEllipseLineEx(Point2D ac, double arx, double ary, Point2D b0, Point2D b1) -
intersectEllipseLine
public static IntersectionResult intersectEllipseLine(double acx, double acy, double arx, double ary, double b0x, double b0y, double b1x, double b1y) -
intersectEllipseLineEx
public static IntersectionResultEx intersectEllipseLineEx(double acx, double acy, double arx, double ary, double b0x, double b0y, double b1x, double b1y) -
intersectEllipseLineEx
public static IntersectionResultEx intersectEllipseLineEx(double acx, double acy, double arx, double ary, double b0x, double b0y, double b1x, double b1y, double epsilon) -
intersectEllipseLine
public static IntersectionResult intersectEllipseLine(double cx, double cy, double rx, double ry, double x0, double y0, double x1, double y1, double epsilon) -
intersectLineEllipse
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 IntersectionResult intersectLineEllipse(Point2D a0, Point2D a1, 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 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)
-