System.Types.UnionRectF

From RAD Studio API Documentation
Jump to: navigation, search

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.

Call UnionRectF to obtain the smallest rectangle with coordinates in floating points that include both R1 and R2. The union is returned as the Rect parameter.

UnionRectF returns True if the resulting rectangle is nonempty. If the resulting rectangle has a width or height that is less than or equal to 0, UnionRectF returns False.

See Also

Personal tools
Translations