Rect3D.Contains Method

Definition

Gets a value that indicates whether a specified Point3D is within the Rect3D, including its edges.

Overloads

Contains(Point3D)

Gets a value that indicates whether a specified Point3D is within the Rect3D, including its edges.

Contains(Rect3D)

Gets a value that indicates whether a specified Point3D is within the Rect3D, including its edges.

Contains(Double, Double, Double)

Gets a value that indicates whether a specified Point3D is within the Rect3D, including its edges.

Contains(Point3D)

Gets a value that indicates whether a specified Point3D is within the Rect3D, including its edges.

C#
public bool Contains(System.Windows.Media.Media3D.Point3D point);

Parameters

point
Point3D

Point to be tested.

Returns

true if the specified point or rectangle is within the Rect3D, including its edges; false otherwise.

Remarks

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

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Contains(Rect3D)

Gets a value that indicates whether a specified Point3D is within the Rect3D, including its edges.

C#
public bool Contains(System.Windows.Media.Media3D.Rect3D rect);

Parameters

rect
Rect3D

Rect3D to be tested.

Returns

true if the specified point or rectangle is within the Rect3D, including its edges; false otherwise.

Remarks

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

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Contains(Double, Double, Double)

Gets a value that indicates whether a specified Point3D is within the Rect3D, including its edges.

C#
public bool Contains(double x, double y, double z);

Parameters

x
Double

X-axis coordinate of the Point3D to be tested.

y
Double

Y-axis coordinate of the Point3D to be tested.

z
Double

Z-coordinate of the Point3D to be tested.

Returns

true if the specified point or rectangle is within the Rect3D, including its edges; false otherwise.

Remarks

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

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10