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);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Types.pas System.Types.hpp |
System.Types | System.Types |
説明
2 つの四角形の和集合(2 つの四角形をちょうど包含する四角形)を返します。
UnionRectF を呼び出すと、R1
と R2
の両方を含む最小の四角形(座標は浮動小数点値)を取得できます。和集合は Rect
パラメータで返されます。
UnionRectF は、結果として生成される四角形が空でない場合、True を返します。結果となる四角形の幅や高さが 0 以下の場合、UnionRectF は False を返します。