Double Height Coordinates
data class DoubleHeightCoordinates(val col: Int, val row: Int) : Coordinates<DoubleHeightCoordinates> , FromHexCoordinates<DoubleHeightCoordinates> (source)
Represents a double height coordinate in the hexagonal grid layout, which doubles the row step size. Use in a flat top hex layout, the row is increased by 2 for each hex.
Constraint: (col + row) % 2 == 0
Properties
Link copied to clipboard
Expects a property of HexCoordinates type, which should be provided by instances of this interface.
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Transforms the given this from HexCoordinates into the corresponding subtype of Coordinates.
Link copied to clipboard
Link copied to clipboard