Rect.Intersects Rect.Intersects Method

Definition

Overloads

Intersects(Rect, Rect) Intersects(Rect, Rect)

Returns true iff the two specified rectangles intersect.

Intersects(Int32, Int32, Int32, Int32) Intersects(Int32, Int32, Int32, Int32)

Returns true if this rectangle intersects the specified rectangle.

Intersects(Rect, Rect) Intersects(Rect, Rect)

Returns true iff the two specified rectangles intersect.

[Android.Runtime.Register("intersects", "(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z", "")]
public static bool Intersects (Android.Graphics.Rect a, Android.Graphics.Rect b);
static member Intersects : Android.Graphics.Rect * Android.Graphics.Rect -> bool

Parameters

a
Rect Rect

The first rectangle being tested for intersection

b
Rect Rect

The second rectangle being tested for intersection

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Intersects(Int32, Int32, Int32, Int32) Intersects(Int32, Int32, Int32, Int32)

Returns true if this rectangle intersects the specified rectangle.

[Android.Runtime.Register("intersects", "(IIII)Z", "")]
public bool Intersects (int left, int top, int right, int bottom);
member this.Intersects : int * int * int * int -> bool

Parameters

left
Int32 Int32

The left side of the rectangle being tested for intersection

top
Int32 Int32

The top of the rectangle being tested for intersection

right
Int32 Int32

The right side of the rectangle being tested for intersection

bottom
Int32 Int32

The bottom of the rectangle being tested for intersection

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to