RectF.Intersects Method

Definition

Overloads

Intersects(RectF, RectF)

Returns true iff the two specified rectangles intersect.

Intersects(Single, Single, Single, Single)

Returns true if this rectangle intersects the specified rectangle.

Intersects(RectF, RectF)

Returns true iff the two specified rectangles intersect.

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

Parameters

a
RectF

The first rectangle being tested for intersection

b
RectF

The second rectangle being tested for intersection

Returns

true iff the two specified rectangles intersect. In no event are either of the rectangles modified.

Attributes

Remarks

Returns true iff the two specified rectangles intersect. In no event are either of the rectangles modified. To record the intersection, use intersect() or setIntersect().

Java documentation for android.graphics.RectF.intersects(android.graphics.RectF, android.graphics.RectF).

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

Intersects(Single, Single, Single, Single)

Returns true if this rectangle intersects the specified rectangle.

[Android.Runtime.Register("intersects", "(FFFF)Z", "GetIntersects_FFFFHandler")]
public virtual bool Intersects (float left, float top, float right, float bottom);
[<Android.Runtime.Register("intersects", "(FFFF)Z", "GetIntersects_FFFFHandler")>]
abstract member Intersects : single * single * single * single -> bool
override this.Intersects : single * single * single * single -> bool

Parameters

left
Single

The left side of the rectangle being tested for intersection

top
Single

The top of the rectangle being tested for intersection

right
Single

The right side of the rectangle being tested for intersection

bottom
Single

The bottom of the rectangle being tested for intersection

Returns

true iff the specified rectangle intersects this rectangle. In no event is this rectangle modified.

Attributes

Remarks

Returns true if this rectangle intersects the specified rectangle. In no event is this rectangle modified. No check is performed to see if either rectangle is empty. To record the intersection, use intersect() or setIntersect().

Java documentation for android.graphics.RectF.intersects(float, float, float, float).

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