Aracılığıyla paylaş


RectF.Intersect Method

Definition

Overloads

Intersect(RectF)

If the specified rectangle intersects this rectangle, return true and set this rectangle to that intersection, otherwise return false and do not change this rectangle.

Intersect(Single, Single, Single, Single)

If the rectangle specified by left,top,right,bottom intersects this rectangle, return true and set this rectangle to that intersection, otherwise return false and do not change this rectangle.

Intersect(RectF)

If the specified rectangle intersects this rectangle, return true and set this rectangle to that intersection, otherwise return false and do not change this rectangle.

[Android.Runtime.Register("intersect", "(Landroid/graphics/RectF;)Z", "GetIntersect_Landroid_graphics_RectF_Handler")]
public virtual bool Intersect (Android.Graphics.RectF r);
[<Android.Runtime.Register("intersect", "(Landroid/graphics/RectF;)Z", "GetIntersect_Landroid_graphics_RectF_Handler")>]
abstract member Intersect : Android.Graphics.RectF -> bool
override this.Intersect : Android.Graphics.RectF -> bool

Parameters

r
RectF

The rectangle being intersected with this rectangle.

Returns

true if the specified rectangle and this rectangle intersect (and this rectangle is then set to that intersection) else return false and do not change this rectangle.

Attributes

Remarks

If the specified rectangle intersects this rectangle, return true and set this rectangle to that intersection, otherwise return false and do not change this rectangle. No check is performed to see if either rectangle is empty. To just test for intersection, use intersects()

Java documentation for android.graphics.RectF.intersect(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

Intersect(Single, Single, Single, Single)

If the rectangle specified by left,top,right,bottom intersects this rectangle, return true and set this rectangle to that intersection, otherwise return false and do not change this rectangle.

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

Parameters

left
Single

The left side of the rectangle being intersected with this rectangle

top
Single

The top of the rectangle being intersected with this rectangle

right
Single

The right side of the rectangle being intersected with this rectangle.

bottom
Single

The bottom of the rectangle being intersected with this rectangle.

Returns

true if the specified rectangle and this rectangle intersect (and this rectangle is then set to that intersection) else return false and do not change this rectangle.

Attributes

Remarks

If the rectangle specified by left,top,right,bottom intersects this rectangle, return true and set this rectangle to that intersection, otherwise return false and do not change this rectangle. No check is performed to see if either rectangle is empty. Note: To just test for intersection, use intersects()

Java documentation for android.graphics.RectF.intersect(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