BoxMask

References
public sealed class BoxMask : IShapeMask
Represents a fast integer accurate AABB useful for sampling.

Properties

Geometry

#
Gets the geometry of this mask.
public ShapeMaskGeometry Geometry { get; }
Geometry

Height

#
Gets the height of this mask.
public int Height { get; }

RowCount

#
Gets the number of rows in this mask.
public int RowCount { get; }
RowCount

Rows

#
Enumerate over all rows in the mask.
public IEnumerable<MaskRow> Rows { get; }
Rows

SampleCount

#
Gets the area (number of samples) of this mask.
public int SampleCount { get; }
SampleCount

Samples

#
Enumerate over all sample offsets.
public IEnumerable<Point> Samples { get; }
Samples

Width

#
Gets the width of this mask.
public int Width { get; }

X0

#
The leftmost X coordinate.
public int X0 { get; }

Y0

#
The topmost Y coordinate.
public int Y0 { get; }

Indexers

this[]

#
Gets the row at the given index.
public MaskRow this[
index
Row index, must be strictly less than RowCount.
] { get; }
Row at given index.
this[]

Methods

Create

#
Create a new box mask.
public static BoxMask Create(
width,
Width of box.
height
Height of box.
)
Mask.