MIST hexTo

From DCS World Wiki - Hoggitworld.com


mist.hex.to

Added with: Mist 4.6
Description
Converts the 3 passed values into a cube based coordinate system for the hex.
Syntax
qrs mist.hex.to(number q index ,number r index ,number s index )
Valid Input Values:
Return value:
qrs
Return example:
{q = -1, r = 0, s = 1}
Usage Examples:
local hx = mist.hex.to(-1, 0, 1)
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