- Declared in: RT.Coordinates.Square
Declaration
public int GetIndex(
int width
)
Summary
Returns the index that this coordinate would have in a rectangle of width
width in which
the cells are numbered from 0 in reading order.
Parameters
int | width |
The width of the rectangle. |
Returns
This method does not check if
Square.X is within range. If it is not, the returned result is
meaningless.