RectF.SetIntersect(RectF, RectF) Method

Definition

If rectangles a and b intersect, return true and set this rectangle to that intersection, otherwise return false and do not change this rectangle.

[Android.Runtime.Register("setIntersect", "(Landroid/graphics/RectF;Landroid/graphics/RectF;)Z", "GetSetIntersect_Landroid_graphics_RectF_Landroid_graphics_RectF_Handler")]
public virtual bool SetIntersect (Android.Graphics.RectF a, Android.Graphics.RectF b);
[<Android.Runtime.Register("setIntersect", "(Landroid/graphics/RectF;Landroid/graphics/RectF;)Z", "GetSetIntersect_Landroid_graphics_RectF_Landroid_graphics_RectF_Handler")>]
abstract member SetIntersect : Android.Graphics.RectF * Android.Graphics.RectF -> bool
override this.SetIntersect : Android.Graphics.RectF * Android.Graphics.RectF -> bool

Parameters

a
RectF

The first rectangle being intersected with

b
RectF

The second rectangle being intersected with

Returns

true iff the two specified rectangles intersect. If they do, set this rectangle to that intersection. If they do not, return false and do not change this rectangle.

Attributes

Remarks

If rectangles a and b intersect, 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.setIntersect(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