line

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.