TTac
Toggle table of contents
release
Target filter
release
Switch theme
Search in API
Skip to content
TTac
TTac
/
io.gh.kdbrian.ttac.game
/
Hex
Hex
data
class
Hex
(
val
q
:
Int
,
val
r
:
Int
)
Axial hex coordinate.
Members
Constructors
Hex
Link copied to clipboard
constructor
(
q
:
Int
,
r
:
Int
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
q
Link copied to clipboard
val
q
:
Int
r
Link copied to clipboard
val
r
:
Int
s
Link copied to clipboard
val
s
:
Int
Functions
distance
To
Link copied to clipboard
fun
distanceTo
(
o
:
Hex
)
:
Int
plus
Link copied to clipboard
operator
fun
plus
(
o
:
Hex
)
:
Hex