System.Types.UnionRectF

提供: RAD Studio API Documentation
移動先: 案内検索

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 を呼び出すと、R1R2 の両方を含む最小の四角形(座標は浮動小数点値)を取得できます。和集合は Rect パラメータで返されます。

UnionRectF は、結果として生成される四角形が空でない場合、True を返します。結果となる四角形の幅や高さが 0 以下の場合、UnionRectFFalse を返します。

関連項目