Struct D3D11Box
Defines a 3D box.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public struct D3D11Box : IEquatable<D3D11Box>
Constructors
| Edit this page View SourceD3D11Box(uint, uint, uint, uint, uint, uint)
Initializes a new instance of the D3D11Box struct.
Declaration
public D3D11Box(uint left, uint top, uint front, uint right, uint bottom, uint back)
Parameters
Type | Name | Description |
---|---|---|
uint | left | The x position of the left hand side of the box. |
uint | top | The y position of the top of the box. |
uint | front | The z position of the front of the box. |
uint | right | The x position of the right hand side of the box. |
uint | bottom | The y position of the bottom of the box. |
uint | back | The z position of the back of the box. |
Properties
| Edit this page View SourceBack
Gets or sets the z position of the back of the box.
Declaration
public uint Back { get; set; }
Property Value
Type | Description |
---|---|
uint |
Bottom
Gets or sets the y position of the bottom of the box.
Declaration
public uint Bottom { get; set; }
Property Value
Type | Description |
---|---|
uint |
Front
Gets or sets the z position of the front of the box.
Declaration
public uint Front { get; set; }
Property Value
Type | Description |
---|---|
uint |
Left
Gets or sets the x position of the left hand side of the box.
Declaration
public uint Left { get; set; }
Property Value
Type | Description |
---|---|
uint |
Right
Gets or sets the x position of the right hand side of the box.
Declaration
public uint Right { get; set; }
Property Value
Type | Description |
---|---|
uint |
Top
Gets or sets the y position of the top of the box.
Declaration
public uint Top { get; set; }
Property Value
Type | Description |
---|---|
uint |
Methods
| Edit this page View SourceEquals(D3D11Box)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D3D11Box other)
Parameters
Type | Name | Description |
---|---|---|
D3D11Box | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
| Edit this page View Sourceoperator ==(D3D11Box, D3D11Box)
Compares two D3D11Box objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D3D11Box left, D3D11Box right)
Parameters
Type | Name | Description |
---|---|---|
D3D11Box | left | The left D3D11Box to compare. |
D3D11Box | right | The right D3D11Box to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D3D11Box, D3D11Box)
Compares two D3D11Box objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D3D11Box left, D3D11Box right)
Parameters
Type | Name | Description |
---|---|---|
D3D11Box | left | The left D3D11Box to compare. |
D3D11Box | right | The right D3D11Box to compare. |
Returns
Type | Description |
---|---|
bool |