MaskRow

References
public struct MaskRow
Represents a horizontal scan line segment in sample space.

Constructors

MaskRow

#
public MaskRow(int y, int x0, int x1)
Create a new line.
y (int)
x0 (int)
x1 (int)

Properties

IsEmpty

#
public bool IsEmpty { get; }
Gets whether this row is completely empty. None rows should typically never arise.

Length

#
public int Length { get; }
Gets the length of this row.

Points

#
public IEnumerable<Point> Points { get; }
Enumerate over all points on the line.

X0

#
public int X0 { get; }
First x coordinate on line.

X1

#
public int X1 { get; }
Last x coordinate on line.

Xs

#
public IEnumerable<int> Xs { get; }
Enumerate over all x coordinate on the line.

Y

#
public int Y { get; }
Y coordinate of line.