- Declared in: RT.Coordinates.Hex
Declaration
public static IEnumerable<Hex> LargeHexagon(
int sideLength,
Hex center = null
)
Summary
Returns a collection of tiles that form a hexagon of the specified size and position.
Parameters
int | sideLength |
The number of hexagonal tiles that make up each side of the large hexagon. If this is 1 , a single tile
is returned. If this is 2 , there are 7 tiles. The number of tiles is given by the centered hexagonal
numbers (https://en.wikipedia.org/wiki/Centered_hexagonal_number ). |
Hex | center |
Specifies the center hex. Default is (0, 0). |