Rect3D Structure
Represents a 3-D rectangle: for example, a cube.
Assembly: PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
The Rect3D type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Rect3D(Point3D, Size3D) | Initializes a new instance of a Rect3D structure. |
![]() | Rect3D(Double, Double, Double, Double, Double, Double) | Initializes a new instance of the Rect3D structure. |
| Name | Description | |
|---|---|---|
![]() ![]() | Empty | Gets an empty Rect3D. |
![]() | IsEmpty | Gets a value that indicates whether this Rect3D is the Empty Rect3D. |
![]() | Location | Gets or sets a Point3D that represents the origin of the Rect3D. |
![]() | Size | Gets or sets the area of the Rect3D. |
![]() | SizeX | Gets or sets the size of the Rect3D in the X dimension. |
![]() | SizeY | Gets or sets the size of the Rect3D in the Y dimension. |
![]() | SizeZ | Gets or sets the size of the Rect3D in the Z dimension. |
![]() | X | Gets or sets the value of the X coordinate of the Rect3D. |
![]() | Y | Gets or sets the value of the Y coordinate of the Rect3D. |
![]() | Z | Gets or sets the value of the Z coordinate of the Rect3D. |
| Name | Description | |
|---|---|---|
![]() | 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. |
![]() | Equals(Object) | Compares two Rect3D instances for equality. (Overrides ValueType::Equals(Object).) |
![]() | Equals(Rect3D) | Compares two Rect3D instances for equality. |
![]() ![]() | Equals(Rect3D, Rect3D) | Compares two Rect3D instances for equality. |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Returns the hash code for the Rect3D (Overrides ValueType::GetHashCode().) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | 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. |
![]() | IntersectsWith | Returns a value that indicates whether the specified Rect3D intersects with this Rect3D. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Offset(Vector3D) | Sets the offset translation of the Rect3D to the provided value, specified as a Vector3D. |
![]() ![]() | Offset(Rect3D, Vector3D) | Gets or sets an offset value by which the location of a Rect3D is translated. |
![]() | Offset(Double, Double, Double) | Gets or sets an offset value by which the location of a Rect3D is translated. |
![]() ![]() | Offset(Rect3D, Double, Double, Double) | Gets or sets an offset value by which the location of a Rect3D is translated. |
![]() ![]() | Parse | Converts a string representation of a Rect3D into the equivalent Rect3D structure. |
![]() | ToString() | Creates a string representation of the Rect3D. (Overrides ValueType::ToString().) |
![]() | ToString(IFormatProvider) | Creates a string representation of the Rect3D. |
![]() | Union(Point3D) | Updates a specified Rect3D to reflect the union of that Rect3D and a specified Point3D. |
![]() | Union(Rect3D) | Updates a specified Rect3D to reflect the union of that Rect3D and a second specified Rect3D. |
![]() ![]() | Union(Rect3D, Point3D) | Returns a new Rect3D that represents the union of a Rect3D, and a specified Point3D. |
![]() ![]() | Union(Rect3D, Rect3D) | Returns a new instance of Rect3D that represents the union of two Rect3D objects. |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality | Compares two Rect3D instances for exact equality. |
![]() ![]() | Inequality | Compares two Rect3D instances for exact inequality. |
| Name | Description | |
|---|---|---|
![]() ![]() | IFormattable::ToString | This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. For a description of this member, see ToString. |
Rect3D is defined as a location (Point3D) and a size structure (Size3D). Because the X, Y, and Z values specified for the size are magnitudes and not coordinates, they cannot be negative except in the case of an empty rectangle. An empty rectangle is specified by Empty, which has X, Y, and Z values of -Infinity.
This structure is typically used to represent the bounds of a MeshGeometry3D or Model3D.
Size3D and Rect3D are not typically used in XAML, because no settable properties exist in the WPF 3D object model that use those types.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
