Rectangle |
[SerializableAttribute] public struct RectangleD3D
The RectangleD3D type exposes the following members.
| Name | Description | |
|---|---|---|
| RectangleD3D(PointD3D, VectorD3D) | Initializes a new instance of the RectangleD3D struct. | |
| RectangleD3D(Double, Double, Double, Double, Double, Double) | Initializes a new instance of the RectangleD3D struct. |
| Name | Description | |
|---|---|---|
| Center | Gets the center of this rectangle. | |
| Edges | Gets the edges of the rectangle (first bottom edges, then the pillars, and then the top edges). | |
| Empty | Gets the empty rectangle. | |
| IsEmpty | Gets a value indicating whether this rectangle is empty (all sizes are zero). | |
| Location | Gets the location (left-top-front corner) of the rectangle. | |
| LocationPlusSize | Gets the location plus size (right-bottom-back corner) of the rectangle. | |
| OuterCircleBoundingBox | Gets a rectangle that includes the smallest circle around this rectangle. | |
| Planes | Gets an enumeration of the planes of the faces of this rectangle (left, right, front, back, bottom, top). | |
| Size | Gets the size vector of this rectangle. | |
| SizeX | Gets the size in x-direction. | |
| SizeY | Gets the size in y-direction. | |
| SizeZ | Gets the size in z-direction. | |
| TriangleIndices | Gets the triangle indices of all faces using the vertices returned by Vertices. The order is front, back, top, bottom, left, right. | |
| Vertices | Gets the vertices in binary order (x: 0th digit, y: 1st digit, z: 2nd digit). | |
| X | Gets the x-coordinate of the left side. | |
| XCenter | Gets the x-coordinate of the rectangle center. | |
| XPlusSizeX | Gets the x-coordinate of the right side. | |
| Y | Gets the y-coordinate of the top side. | |
| YCenter | Gets the y-coordinate of the rectangle center. | |
| YPlusSizeY | Gets the y-coordinate of the bottom side. | |
| Z | Gets the z-coordinate of the front side. | |
| ZCenter | Gets the z-coordinate of the rectangle center. | |
| ZPlusSizeZ | Gets the z-coordinate of the back side. |
| Name | Description | |
|---|---|---|
| Contains | Determines whether the specified point is contained in this rectangle. | |
| Equals | Indicates whether this instance and a specified object are equal. (Overrides ValueTypeEquals(Object)) | |
| GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode) | |
| GetTriangleIndices | Gets the triangle indices of all faces using the vertices returned by Vertices. The order is front, back, top, bottom, left, right. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| NewRectangleIncludingAllPoints | Creates a new rectangle that includes all the provided points. | |
| ToString | Returns the fully qualified type name of this instance. (Overrides ValueTypeToString) | |
| WithLocation | Returns a new instance with the specified location. | |
| WithOffset | Changes the location of the rectangle by the specified values for x and y. | |
| WithPadding | Inflates the rectangle by the specified values x and y. | |
| WithPointsIncluded | Returns a rectangle that is based on the current rectangle, but was expanded to include all the provided points. | |
| WithRectangleIncluded | Returns a rectangle that is based on the current rectangle, but was expanded to include all vertex points of the provided rectangle r. | |
| WithSize | Returns a new instance with the specified size. | |
| WithSizePlus | Returns a new instance with the specified size offset applied. | |
| WithSizeX | Returns a new instance with SizeX set to the provided value. | |
| WithSizeXPlus | Returns a new instance with SizeX increased by the provided value. | |
| WithSizeY | Returns a new instance with SizeY set to the provided value. | |
| WithSizeYPlus | Returns a new instance with SizeY increased by the provided value. | |
| WithSizeZ | Returns a new instance with SizeZ set to the provided value. | |
| WithSizeZPlus | Returns a new instance with SizeZ increased by the provided value. | |
| WithX | Returns a new instance with X set to the provided value. | |
| WithXPlus | Returns a new instance with X set to the X plus the provided value. | |
| WithY | Returns a new instance with Y set to the provided value. | |
| WithYPlus | Returns a new instance with Y set to the Y plus the provided value. | |
| WithZ | Returns a new instance with Z set to the provided value. | |
| WithZPlus | Returns a new instance with Z set to the Z plus the provided value. |
| Name | Description | |
|---|---|---|
| Equality(RectangleD3D, RectangleD3D) | Determines whether two rectangles are equal. | |
| Inequality(RectangleD3D, RectangleD3D) | Determines whether two rectangles are not equal. |