System.Types.IntersectRectF

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

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);

プロパティ

種類 可視性 ソース ユニット
function public
System.Types.pas
System.Types.hpp
System.Types System.Types

説明

2 つの四角形の交差部分を返します。


IntersectRectF を呼び出すと、R1R2 の交差部分を表す四角形を浮動小数点座標で取得できます。交差部分は Rect パラメータで返されます。

IntersectRectF は、2 つの四角形の交差部分が空でない場合、True を返します。R1 と R2 が交差しない場合、IntersectRectFFalse を返し、Rect パラメータは Width と Height が共に 0 で位置が (0,0) の四角形に設定されます。

関連項目