IntersectRect

function IntersectRect(out Dst: TRect; const R1, R2: TRect): Boolean; overload;

function IntersectRect(out Dst: TFloatRect; const FR1, FR2: TFloatRect): Boolean; overload;

Description

Calculates intersection of the rectangles and writes result into Dst. Functions return True if rectangles intersect, otherwise they return False and write an empty rectangle into Dst, that is a rectangle with all coordinates equal to 0.

See Also

Creating Rectangles, Rectangle Types