java.lang.Object
org.jhotdraw8.geom.intersect.IntersectRectangleRectangle
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull IntersectionResultExintersectRectangleRectangleEx(double ax, double ay, double aw, double ah, double bx, double by, double bw, double bh) static @NonNull IntersectionResultExintersectRectangleRectangleEx(@NonNull Point2D a0, @NonNull Point2D a1, @NonNull Point2D b0, @NonNull Point2D b1) Computes the intersection between two rectangles 'a' and 'b'.
-
Method Details
-
intersectRectangleRectangleEx
public static @NonNull IntersectionResultEx intersectRectangleRectangleEx(double ax, double ay, double aw, double ah, double bx, double by, double bw, double bh) -
intersectRectangleRectangleEx
public static @NonNull IntersectionResultEx intersectRectangleRectangleEx(@NonNull Point2D a0, @NonNull Point2D a1, @NonNull Point2D b0, @NonNull Point2D b1) Computes the intersection between two rectangles 'a' and 'b'.- Parameters:
a0- corner point 0 of rectangle 'a'a1- corner point 1 of rectangle 'a'b0- corner point 0 of rectangle 'b'b1- corner point 1 of rectangle 'b'- Returns:
- computed intersection
-