Sign in Join
FPDoc Onlineexperiment

IntersectRect function

In unit Types

Return the intersection of 2 rectangles.

Declaration

pascal
function IntersectRect(const Rect1: TRect; const Rect2: TRect): Boolean

Description

IntersectRect returns the intersection of the 2 rectangles R1 and R2 in Rect. It returns True if the 2 rectangles have an intersection, otherwise False is returned, and Rect is filled with zero.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.