Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: IEnumerable<Square> Rectangle(int, int, int, int)

  • Declared in: RT.Coordinates.Square

Declaration

public static IEnumerable<Square> Rectangle(
    int width,
    int height,
    int dx = 0,
    int dy = 0
)

Summary

Returns a collection of all cells in a grid of the specified size.

Parameters

intwidth Width of the grid.
intheight Height of the grid.
intdx Specifies the x-coordinate of the top-left corner. Default is 0.
intdy Specifies the y-coordinate of the top-left corner. Default is 0.