Skip to content



A module containing extension methods for the Xojo Rect class.


Name Parameters Returns
Area r As Rect Double
Overlap A As Rect, B As Rect Double

Method Descriptions

Area(r As Rect) As Double

Returns the area of Rect r.

Overlap(A As Rect, B As Rect) As Double

Returns the percentage of overlap between Rects A and B. 1.0 is perfect overlap, 0.0 is no overlap.

StackOverflow post.