Hex

data class Hex(val q: Int, val r: Int)

Axial hex coordinate.

Constructors

Link copied to clipboard
constructor(q: Int, r: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val q: Int
Link copied to clipboard
val r: Int
Link copied to clipboard
val s: Int

Functions

Link copied to clipboard
fun distanceTo(o: Hex): Int
Link copied to clipboard
operator fun plus(o: Hex): Hex