Rect3D Structure

 

Represents a 3-D rectangle: for example, a cube.

Namespace:   System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)

[SerializableAttribute]
[TypeConverterAttribute(typeof(Rect3DConverter))]
public struct Rect3D : IFormattable

NameDescription
System_CAPS_pubmethodRect3D(Double, Double, Double, Double, Double, Double)

Initializes a new instance of the Rect3D structure.

System_CAPS_pubmethodRect3D(Point3D, Size3D)

Initializes a new instance of a Rect3D structure.

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticEmpty

Gets an empty Rect3D.

System_CAPS_pubpropertyIsEmpty

Gets a value that indicates whether this Rect3D is the Empty Rect3D.

System_CAPS_pubpropertyLocation

Gets or sets a Point3D that represents the origin of the Rect3D.

System_CAPS_pubpropertySize

Gets or sets the area of the Rect3D.

System_CAPS_pubpropertySizeX

Gets or sets the size of the Rect3D in the X dimension.

System_CAPS_pubpropertySizeY

Gets or sets the size of the Rect3D in the Y dimension.

System_CAPS_pubpropertySizeZ

Gets or sets the size of the Rect3D in the Z dimension.

System_CAPS_pubpropertyX

Gets or sets the value of the X coordinate of the Rect3D.

System_CAPS_pubpropertyY

Gets or sets the value of the Y coordinate of the Rect3D.

System_CAPS_pubpropertyZ

Gets or sets the value of the Z coordinate of the Rect3D.

NameDescription
System_CAPS_pubmethodContains(Double, Double, Double)

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

System_CAPS_pubmethodContains(Point3D)

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

System_CAPS_pubmethodContains(Rect3D)

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

System_CAPS_pubmethodEquals(Object)

Compares two Rect3D instances for equality. (Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodEquals(Rect3D)

Compares two Rect3D instances for equality.

System_CAPS_pubmethodSystem_CAPS_staticEquals(Rect3D, Rect3D)

Compares two Rect3D instances for equality.

System_CAPS_pubmethodGetHashCode()

Returns the hash code for the Rect3D(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIntersect(Rect3D)

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

System_CAPS_pubmethodSystem_CAPS_staticIntersect(Rect3D, Rect3D)

Returns the intersection of the specified Rect3D values.

System_CAPS_pubmethodIntersectsWith(Rect3D)

Returns a value that indicates whether the specified Rect3D intersects with this Rect3D.

System_CAPS_pubmethodOffset(Double, Double, Double)

Gets or sets an offset value by which the location of a Rect3D is translated.

System_CAPS_pubmethodSystem_CAPS_staticOffset(Rect3D, Double, Double, Double)

Gets or sets an offset value by which the location of a Rect3D is translated.

System_CAPS_pubmethodSystem_CAPS_staticOffset(Rect3D, Vector3D)

Gets or sets an offset value by which the location of a Rect3D is translated.

System_CAPS_pubmethodOffset(Vector3D)

Sets the offset translation of the Rect3D to the provided value, specified as a Vector3D.

System_CAPS_pubmethodSystem_CAPS_staticParse(String)

Converts a string representation of a Rect3D into the equivalent Rect3D structure.

System_CAPS_pubmethodToString()

Creates a string representation of the Rect3D. (Overrides ValueType.ToString().)

System_CAPS_pubmethodToString(IFormatProvider)

Creates a string representation of the Rect3D.

System_CAPS_pubmethodUnion(Point3D)

Updates a specified Rect3D to reflect the union of that Rect3D and a specified Point3D.

System_CAPS_pubmethodUnion(Rect3D)

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

System_CAPS_pubmethodSystem_CAPS_staticUnion(Rect3D, Point3D)

Returns a new Rect3D that represents the union of a Rect3D, and a specified Point3D.

System_CAPS_pubmethodSystem_CAPS_staticUnion(Rect3D, Rect3D)

Returns a new instance of Rect3D that represents the union of two Rect3D objects.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(Rect3D, Rect3D)

Compares two Rect3D instances for exact equality.

System_CAPS_puboperatorSystem_CAPS_staticInequality(Rect3D, Rect3D)

Compares two Rect3D instances for exact inequality.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIFormattable.ToString(String, IFormatProvider)

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.

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: