Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

  • Declared in: RT.Coordinates.Chamf

Declaration

public static IEnumerable<Chamf> Rectangle(
    int width,
    int height
)

Summary

Returns a set of Chamf cells that form a rectangle. Along the perimeter all the cells will be hexagons. Only squares internal to these hexagons are included.

Parameters

intwidth The number of squares in the x direction.
intheight The number of squares in the y direction.