MIST hex axialToCube

From DCS World Wiki - Hoggitworld.com
Revision as of 22:25, 1 September 2026 by Grimes (talk | contribs) (Created page with "{{Mission Scripting |fName= mist.hex.axialToCube| |vNum = Mist 4.6 |desc= Converts a hex value of q and r to the cube q r s format. The s value is simply -q-r |rtnType=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


mist.hex.axialToCube

Added with: Mist 4.6
Description
Converts a hex value of q and r to the cube q r s format.

The s value is simply -q-r

Syntax
table mist.hex.axialToCube(table qr )
Valid Input Values:
Return value:
table
Return example:
Usage Examples:
Notes:
Related Functions
to, getRadius, setRadius, add, subtract,scale, rotate_left, rotate_right, neighbor, getNeighborCount, diagonalNeighbor, length, distance, round, lerp, cubeScale, cubeRing, cubeSpiral, lineDraw, cubeToAxial, axialToCube, pointToHex, makeVek2, makeVec3, makeVec3GL, hash, hashToHex, draw

Scripting Engine

MIST Root Page