java.lang.Object
org.jhotdraw8.geom.intersect.IntersectLineRectangle
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntersectionResultExintersectLineRectangleEx(Point2D a0, Point2D a1, Point2D r0, Point2D r1) Computes the intersection between a line and a rectangle.static IntersectionResultExintersectLineRectangleEx(Point2D a0, Point2D a1, Rectangle2D.Double r) static IntersectionResultExintersectRectangleLineEx(Rectangle2D.Double r, Point2D a0, Point2D a1)
-
Method Details
-
intersectLineRectangleEx
public static IntersectionResultEx intersectLineRectangleEx(Point2D a0, Point2D a1, Point2D r0, Point2D r1) Computes the intersection between a line and a rectangle.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 liner0- corner point 0 of the rectangler1- corner point 1 of the rectangle- Returns:
- computed intersection
-
intersectLineRectangleEx
public static IntersectionResultEx intersectLineRectangleEx(Point2D a0, Point2D a1, Rectangle2D.Double r) -
intersectRectangleLineEx
public static IntersectionResultEx intersectRectangleLineEx(Rectangle2D.Double r, Point2D a0, Point2D a1)
-