intersect


Description:

public bool intersect (Rectangle area, out Rectangle? intersection = null)

Computes the intersection of a this’s area and area, storing the intersection in intersection, and returns true if there was an intersection.

intersection may be null if you’re only interested in whether there was an intersection.

Parameters:

this

a Widget

area

a rectangle

intersection

rectangle to store intersection of this and area

Returns:

true if there was an intersection