Struct ResourceRegion
Defines a 3D box with integer coordinates, represented as the coordinates of its minimum (left, top, front) and maximum (right, bottom, back) corners.
public struct ResourceRegion
- Inherited Members
- Extension Methods
Remarks
The values for Right, Bottom, and Back are each one pixel past the end of the pixels that are included in the box region.
That is, the values for Left, Top, and Front are included in the box region while the values for Right, Bottom, and Back are excluded from the box region.
For example, for a box that is one pixel wide, where (Right - Left) == 1, the box region includes
the left pixel but not the right pixel.
Constructors
ResourceRegion(int, int, int, int, int, int)
Defines a 3D box with integer coordinates, represented as the coordinates of its minimum (left, top, front) and maximum (right, bottom, back) corners.
public ResourceRegion(int left, int top, int front, int right, int bottom, int back)
Parameters
leftintThe X position of the left hand side of the box.
topintThe Y position of the top of the box.
frontintThe Z position of the front of the box.
rightintThe X position of the right hand side of the box.
bottomintThe Y position of the bottom of the box.
backintThe Z position of the back of the box.
Remarks
The values for Right, Bottom, and Back are each one pixel past the end of the pixels that are included in the box region.
That is, the values for Left, Top, and Front are included in the box region while the values for Right, Bottom, and Back are excluded from the box region.
For example, for a box that is one pixel wide, where (Right - Left) == 1, the box region includes
the left pixel but not the right pixel.
Fields
Back
The Z position of the back of the box.
public int Back
Field Value
Bottom
The Y position of the bottom of the box.
public int Bottom
Field Value
Front
The Z position of the front of the box.
public int Front
Field Value
Left
The X position of the left hand side of the box.
public int Left
Field Value
Right
The X position of the right hand side of the box.
public int Right
Field Value
Top
The Y position of the top of the box.
public int Top
Field Value
Properties
Depth
public readonly int Depth { get; }
Property Value
Height
public readonly int Height { get; }
Property Value
Width
public readonly int Width { get; }