Table of Contents

Struct ResourceRegion

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Defines a 3D box.

public struct ResourceRegion
Inherited Members
Extension Methods

Remarks

The following diagram shows a 3D box, where the origin is the left, front, top corner.

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, (right - left) == 1; the box region includes the left pixel but not the right pixel.

Constructors

ResourceRegion(int, int, int, int, int, int)

public ResourceRegion(int left, int top, int front, int right, int bottom, int back)

Parameters

left int
top int
front int
right int
bottom int
back int

Fields

Back

The z position of the back of the box.

public int Back

Field Value

int

Bottom

The y position of the bottom of the box.

public int Bottom

Field Value

int

Front

The z position of the front of the box.

public int Front

Field Value

int

Left

The x position of the left hand side of the box.

public int Left

Field Value

int

Right

The x position of the right hand side of the box.

public int Right

Field Value

int

Top

The y position of the top of the box.

public int Top

Field Value

int