Rect3D.Contains Rect3D.Contains Rect3D.Contains Rect3D.Contains Method

定義

取得值,此值會指出指定的 Point3D 是否位於 Rect3D,包含其邊緣。Gets a value that indicates whether a specified Point3D is within the Rect3D, including its edges.

多載

Contains(Point3D) Contains(Point3D) Contains(Point3D) Contains(Point3D)

取得值,此值會指出指定的 Point3D 是否位於 Rect3D,包含其邊緣。Gets a value that indicates whether a specified Point3D is within the Rect3D, including its edges.

Contains(Rect3D) Contains(Rect3D) Contains(Rect3D) Contains(Rect3D)

取得值,此值會指出指定的 Point3D 是否位於 Rect3D,包含其邊緣。Gets a value that indicates whether a specified Point3D is within the Rect3D, including its edges.

Contains(Double, Double, Double) Contains(Double, Double, Double) Contains(Double, Double, Double) Contains(Double, Double, Double)

取得值,此值會指出指定的 Point3D 是否位於 Rect3D,包含其邊緣。Gets a value that indicates whether a specified Point3D is within the Rect3D, including its edges.

Contains(Point3D) Contains(Point3D) Contains(Point3D) Contains(Point3D)

取得值,此值會指出指定的 Point3D 是否位於 Rect3D,包含其邊緣。Gets a value that indicates whether a specified Point3D is within the Rect3D, including its edges.

public:
 bool Contains(System::Windows::Media::Media3D::Point3D point);
public bool Contains (System.Windows.Media.Media3D.Point3D point);
member this.Contains : System.Windows.Media.Media3D.Point3D -> bool
Public Function Contains (point As Point3D) As Boolean

參數

point
Point3D Point3D Point3D Point3D

要測試的點。Point to be tested.

傳回

如果指定的點或矩形連同邊緣在 Rect3D 的範圍內則為 true,否則為 false。True if the specified point or rectangle is within the Rect3D, including its edges; false otherwise.

備註

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

Contains(Rect3D) Contains(Rect3D) Contains(Rect3D) Contains(Rect3D)

取得值,此值會指出指定的 Point3D 是否位於 Rect3D,包含其邊緣。Gets a value that indicates whether a specified Point3D is within the Rect3D, including its edges.

public:
 bool Contains(System::Windows::Media::Media3D::Rect3D rect);
public bool Contains (System.Windows.Media.Media3D.Rect3D rect);
member this.Contains : System.Windows.Media.Media3D.Rect3D -> bool
Public Function Contains (rect As Rect3D) As Boolean

參數

rect
Rect3D Rect3D Rect3D Rect3D

要測試的 Rect3DRect3D to be tested.

傳回

如果指定的點或矩形連同邊緣在 Rect3D 的範圍內則為 true,否則為 false。True if the specified point or rectangle is within the Rect3D, including its edges; false otherwise.

備註

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

Contains(Double, Double, Double) Contains(Double, Double, Double) Contains(Double, Double, Double) Contains(Double, Double, Double)

取得值,此值會指出指定的 Point3D 是否位於 Rect3D,包含其邊緣。Gets a value that indicates whether a specified Point3D is within the Rect3D, including its edges.

public:
 bool Contains(double x, double y, double z);
public bool Contains (double x, double y, double z);
member this.Contains : double * double * double -> bool
Public Function Contains (x As Double, y As Double, z As Double) As Boolean

參數

x
Double Double Double Double

要測試之 Point3D 的 X 軸座標。X-axis coordinate of the Point3D to be tested.

y
Double Double Double Double

要測試之 Point3D 的 Y 軸座標。Y-axis coordinate of the Point3D to be tested.

z
Double Double Double Double

要測試之 Point3D 的 Z 座標。Z-coordinate of the Point3D to be tested.

傳回

如果指定的點或矩形連同邊緣在 Rect3D 的範圍內則為 true,否則為 falsetrue if the specified point or rectangle is within the Rect3D, including its edges; false otherwise.

備註

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

適用於