RectHelper.Intersect(Rect, Rect) メソッド

定義

新しい Rect として、交差する 2 つの指定された Rect 値の領域を返します。 C# コードでは、代わりに Rect.Intersect を使用する必要があります。

public:
 static Rect Intersect(Rect target, Rect rect);
 static Rect Intersect(Rect const& target, Rect const& rect);
public static Rect Intersect(Rect target, Rect rect);
function intersect(target, rect)
Public Shared Function Intersect (target As Rect, rect As Rect) As Rect

パラメーター

target
Rect

交差のチェックする最初の Rect

rect
Rect

交差をチェックする 2 番目の Rect

戻り値

の領域とrect交差する領域targetを表す Rect。 積集合がない場合は 、空 の値を指定できます。

適用対象