Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: IEnumerable<Hex> LargeHexagon(int, Hex)

  • 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

intsideLength 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).
Hexcenter Specifies the center hex. Default is (0, 0).