rectangle_intersect


Description:


[ Version ( since = "2.4" ) ]
public bool rectangle_intersect (int x1, int y1, int width1, int height1, int x2, int y2, int width2, int height2, out int dest_x, out int dest_y, out int dest_width, out int dest_height)

Calculates the intersection of two rectangles.

Parameters:

x1

origin of first rectangle

y1

origin of first rectangle

width1

width of first rectangle

height1

height of first rectangle

x2

origin of second rectangle

y2

origin of second rectangle

width2

width of second rectangle

height2

height of second rectangle

dest_x

return location for origin of intersection, or null

dest_y

return location for origin of intersection, or null

dest_width

return location for width of intersection, or null

dest_height

return location for height of intersection, or null

Returns:

true if the intersection is non-empty, false otherwise


Namespace: Gimp
Package: gimp-3.0