語言

Rect.Intersects 方法

定義

多載

名稱 Description
Intersects(Rect, Rect)

當兩個指定的矩形相交時回傳為真。

Intersects(Int32, Int32, Int32, Int32)

若此矩形與指定矩形相交,則返回為真。

Intersects(Rect, Rect)

當兩個指定的矩形相交時回傳為真。

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

參數

a
Rect

第一個正在測試交叉點的矩形

b
Rect

第二個矩形正在測試交集

傳回

當當兩個指定的矩形相交時為真。 無論如何,這些矩形都不會被修改。

屬性

備註

當兩個指定的矩形相交時回傳為真。 無論如何,這些矩形都不會被修改。 要記錄交點,請使用 #intersect(Rect) 或 #setIntersect(Rect, Rect)。

Java 文件 android.graphics.Rect.intersects(android.graphics.Rect, android.graphics.Rect)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Intersects(Int32, Int32, Int32, Int32)

若此矩形與指定矩形相交,則返回為真。

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

參數

left
Int32

矩形左側正在測試交集

top
Int32

正在測試交叉點的矩形頂部

right
Int32

正在測試交叉點的矩形右側

bottom
Int32

正在測試交點的矩形底部

傳回

當指定的矩形與該矩形相交時,為真。 無論如何,這個矩形都不會被修改。

屬性

備註

若此矩形與指定矩形相交,則返回為真。 無論如何,這個矩形都不會被修改。 不會檢查任一矩形是否為空。 要記錄交集,請使用 intersect() 或 setIntersect()。

Java 文件 android.graphics.Rect.intersects(int, int, int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於