Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: int GetIndex(int)

  • 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

intwidth 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.