System.Types.IntersectRectF
Delphi
function IntersectRectF(out Rect: TRectF; const R1, R2: TRectF): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall IntersectRectF(/* out */ TRectF &Rect, const TRectF &R1, const TRectF &R2);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Types.pas System.Types.hpp |
System.Types | System.Types |
Description
Returns the intersection of two rectangles.
Call IntersectRectF to obtain the rectangle with floating-point coordinates that is the intersection of R1
and R2
. The intersection is returned as the Rect
parameter.
IntersectRectF returns True if the two rectangles have a nonempty intersection. If R1 and R2 do not overlap, IntersectRectF returns False, and Rect
is set to a rectangle at the (0,0) position with 0 Width and 0 Height.