Double Width Coordinates
data class DoubleWidthCoordinates(val col: Int, val row: Int) : Coordinates<DoubleWidthCoordinates> , FromHexCoordinates<DoubleWidthCoordinates> (source)
Represents a double width coordinate in the hexagonal grid layout, which doubles the column step size. Use in a pointy top hex layout, the column 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