Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: Grid(int, int, bool, bool)

Declaration

public Grid(
    int width,
    int height,
    bool toroidalX = false,
    bool toroidalY = false
)

Summary

Constructs a rectilinear grid that is width cells wide and height cells tall.

Parameters

intwidth Width of the grid.
intheight Height of the grid.
booltoroidalX If true, treats the grid as horizontally toroidal (the left/right edges wrap around).
booltoroidalY If true, treats the grid as vertically toroidal (the top/bottom edges wrap around).