IntersectsWith
Previous  Next

Checks whether one rectangle intersects with another.
Syntax: IntersectsWith (rect2 As Rectangle) As Boolean

Example:
if rect1.IntersectsWith(otherRect.Value) = true then ...