System.Types.IntersectRectF
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 を呼び出すと、四角形 R1
と R2
の交差部分の四角形を、浮動小数点の座標で取得します。交差部分は、Rect
パラメータで返されます。
IntersectRectF は、2 つの四角形による交差部分が空でなかったときに True を返します。 R1 と R2 が重なってなかった場合、IntersectRectF は False を返し、Rect
は、(0,0) の位置にある幅 0 高さ 0 の四角形に設定されます。