編輯

共用方式為


Rect3D.Intersect Method

Definition

Updates a specified Rect3D to reflect the intersection of that Rect3D and a second specified Rect3D.

Overloads

Intersect(Rect3D)

Finds the intersection of the current Rect3D and the specified Rect3D, and stores the result as the current Rect3D.

Intersect(Rect3D, Rect3D)

Returns the intersection of the specified Rect3D values.

Intersect(Rect3D)

Finds 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)

Parameters

rect
Rect3D

The Rect3D to intersect with the current Rect3D.

Remarks

If the value of either specified rectangle is empty, this method returns an empty value.

Rect3D is typically used to represent the bounds of a MeshGeometry3D or Model3D.

Applies to

Intersect(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

Parameters

rect1
Rect3D

First Rect3D.

rect2
Rect3D

Second Rect3D.

Returns

Result of the intersection of rect1 and rect2.

Remarks

If the value of either specified rectangle is empty, this method returns an empty value.

Rect3D is typically used to represent the bounds of a MeshGeometry3D or Model3D.

Applies to