System.Types.UnionRectF
Delphi
function UnionRectF(out Rect: TRectF; const R1, R2: TRectF): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall UnionRectF(/* 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 union of two rectangles.
UnionRectF returns the smallest rectangle, with floating-point coordinates, that includes both specified R1 and R2 rectangles. The union rectangle is returned in the Rect parameter.
UnionRectF returns True if the resulting rectangle is nonempty. Otherwise, UnionRectF returns False, and Rect is set to a rectangle at the (0,0) position with 0 Width and 0 Height.