Companion

object Companion

Properties

Link copied to clipboard

The six straight directions through a hex grid.

Functions

Link copied to clipboard
fun disc(radius: Int): List<Hex>
Link copied to clipboard
fun line(a: Hex, b: Hex): List<Hex>?

Cells on the straight line from a to b, or null if they don't share an axis.