Rect3D Rect3D Rect3D Rect3D Struct

Definition

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

public value class Rect3D : IFormattable
[System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Rect3DConverter))]
[System.Serializable]
public struct Rect3D : IFormattable
type Rect3D = struct
    interface IFormattable
Public Structure Rect3D
Implements IFormattable
Inheritance
Attributes
Implements

Remarks

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.

Constructors

Rect3D(Point3D, Size3D) Rect3D(Point3D, Size3D) Rect3D(Point3D, Size3D) Rect3D(Point3D, Size3D)

Initializes a new instance of a Rect3D structure.

Rect3D(Double, Double, Double, Double, Double, Double) Rect3D(Double, Double, Double, Double, Double, Double) Rect3D(Double, Double, Double, Double, Double, Double) Rect3D(Double, Double, Double, Double, Double, Double)

Initializes a new instance of the Rect3D structure.

Properties

Empty Empty Empty Empty

Gets an empty Rect3D.

IsEmpty IsEmpty IsEmpty IsEmpty

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

Location Location Location Location

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

Size Size Size Size

Gets or sets the area of the Rect3D.

SizeX SizeX SizeX SizeX

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

SizeY SizeY SizeY SizeY

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

SizeZ SizeZ SizeZ SizeZ

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

X X X X

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

Y Y Y Y

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

Z Z Z Z

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

Methods

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

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

Contains(Rect3D) Contains(Rect3D) Contains(Rect3D) Contains(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)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Compares two Rect3D instances for equality.

Equals(Rect3D) Equals(Rect3D) Equals(Rect3D) Equals(Rect3D)

Compares two Rect3D instances for equality.

Equals(Rect3D, Rect3D) Equals(Rect3D, Rect3D) Equals(Rect3D, Rect3D) Equals(Rect3D, Rect3D)

Compares two Rect3D instances for equality.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns the hash code for the Rect3D

Intersect(Rect3D) Intersect(Rect3D) Intersect(Rect3D) Intersect(Rect3D)

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

Intersect(Rect3D, Rect3D) Intersect(Rect3D, Rect3D) Intersect(Rect3D, Rect3D) Intersect(Rect3D, Rect3D)

Returns the intersection of the specified Rect3D values.

IntersectsWith(Rect3D) IntersectsWith(Rect3D) IntersectsWith(Rect3D) IntersectsWith(Rect3D)

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

Offset(Rect3D, Double, Double, Double) Offset(Rect3D, Double, Double, Double) Offset(Rect3D, Double, Double, Double) Offset(Rect3D, Double, Double, Double)

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

Offset(Double, Double, Double) Offset(Double, Double, Double) Offset(Double, Double, Double) Offset(Double, Double, Double)

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

Offset(Vector3D) Offset(Vector3D) Offset(Vector3D) Offset(Vector3D)

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

Offset(Rect3D, Vector3D) Offset(Rect3D, Vector3D) Offset(Rect3D, Vector3D) Offset(Rect3D, Vector3D)

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

Parse(String) Parse(String) Parse(String) Parse(String)

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

ToString() ToString() ToString() ToString()

Creates a string representation of the Rect3D.

ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider)

Creates a string representation of the Rect3D.

Union(Rect3D, Rect3D) Union(Rect3D, Rect3D) Union(Rect3D, Rect3D) Union(Rect3D, Rect3D)

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

Union(Point3D) Union(Point3D) Union(Point3D) Union(Point3D)

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

Union(Rect3D) Union(Rect3D) Union(Rect3D) Union(Rect3D)

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

Union(Rect3D, Point3D) Union(Rect3D, Point3D) Union(Rect3D, Point3D) Union(Rect3D, Point3D)

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

Operators

Equality(Rect3D, Rect3D) Equality(Rect3D, Rect3D) Equality(Rect3D, Rect3D) Equality(Rect3D, Rect3D)

Compares two Rect3D instances for exact equality.

Inequality(Rect3D, Rect3D) Inequality(Rect3D, Rect3D) Inequality(Rect3D, Rect3D) Inequality(Rect3D, Rect3D)

Compares two Rect3D instances for exact inequality.

Explicit Interface Implementations

IFormattable.ToString(String, IFormatProvider) IFormattable.ToString(String, IFormatProvider) IFormattable.ToString(String, IFormatProvider) IFormattable.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(String, IFormatProvider).

Applies to