Rect3D.Intersect Rect3D.Intersect Rect3D.Intersect Rect3D.Intersect Method

定義

更新指定的 Rect3D,以反映該 Rect3D 與第二個指定的 Rect3D 的交集。Updates a specified Rect3D to reflect the intersection of that Rect3D and a second specified Rect3D.

多載

Intersect(Rect3D) Intersect(Rect3D) Intersect(Rect3D) Intersect(Rect3D)

尋找目前 Rect3D 與所指定 Rect3D 的交集,並將結果儲存為目前的 Rect3DFinds the intersection of the current Rect3D and the specified Rect3D, and stores the result as the current Rect3D.

Intersect(Rect3D, Rect3D) Intersect(Rect3D, Rect3D) Intersect(Rect3D, Rect3D) Intersect(Rect3D, Rect3D)

傳回指定之 Rect3D 值的交集。Returns the intersection of the specified Rect3D values.

Intersect(Rect3D) Intersect(Rect3D) Intersect(Rect3D) Intersect(Rect3D)

尋找目前 Rect3D 與所指定 Rect3D 的交集,並將結果儲存為目前的 Rect3DFinds the intersection of the current Rect3D and the specified Rect3D, and stores the result as the current Rect3D.

public:
 void Intersect(System::Windows::Media::Media3D::Rect3D rect);
public void Intersect (System.Windows.Media.Media3D.Rect3D rect);
member this.Intersect : System.Windows.Media.Media3D.Rect3D -> unit
Public Sub Intersect (rect As Rect3D)

參數

rect
Rect3D Rect3D Rect3D Rect3D

要與目前 Rect3D 交集的 Rect3DThe Rect3D to intersect with the current Rect3D.

備註

如果任一指定矩形的值是空的, 則這個方法會傳回空值。If the value of either specified rectangle is empty, this method returns an empty value.

Rect3D通常用來表示MeshGeometry3DModel3D的界限。Rect3D is typically used to represent the bounds of a MeshGeometry3D or Model3D.

Intersect(Rect3D, Rect3D) Intersect(Rect3D, Rect3D) Intersect(Rect3D, Rect3D) Intersect(Rect3D, Rect3D)

傳回指定之 Rect3D 值的交集。Returns the intersection of the specified Rect3D values.

public:
 static System::Windows::Media::Media3D::Rect3D Intersect(System::Windows::Media::Media3D::Rect3D rect1, System::Windows::Media::Media3D::Rect3D rect2);
public static System.Windows.Media.Media3D.Rect3D Intersect (System.Windows.Media.Media3D.Rect3D rect1, System.Windows.Media.Media3D.Rect3D rect2);
static member Intersect : System.Windows.Media.Media3D.Rect3D * System.Windows.Media.Media3D.Rect3D -> System.Windows.Media.Media3D.Rect3D
Public Shared Function Intersect (rect1 As Rect3D, rect2 As Rect3D) As Rect3D

參數

rect1
Rect3D Rect3D Rect3D Rect3D

第一個 Rect3DFirst Rect3D.

rect2
Rect3D Rect3D Rect3D Rect3D

第二個 Rect3DSecond Rect3D.

傳回

rect1rect2 交集的結果。Result of the intersection of rect1 and rect2.

備註

如果任一指定矩形的值是空的, 則這個方法會傳回空值。If the value of either specified rectangle is empty, this method returns an empty value.

Rect3D通常用來表示MeshGeometry3DModel3D的界限。Rect3D is typically used to represent the bounds of a MeshGeometry3D or Model3D.

適用於