intersection

fun intersection(b: Rect, res: Rect?): Boolean

Computes the intersection of the two given rectangles.

The intersection in the image above is the blue outline.

If the two rectangles do not intersect, @res will contain a degenerate rectangle with origin in (0, 0) and a size of 0.

Return

true if the two rectangles intersect

Since

1.0

Parameters

b

a #graphene_rect_t

res

return location for a #graphene_rect_t