Difference between revisions of "MIST hexTo"

From DCS World Wiki - Hoggitworld.com
(Created page with "{{Mission Scripting |fName= mist.hex.to| |vNum = Mist 4.6 |desc= Converts the 3 passed values into a cube based coordinate system for the hex. | |rtnType= qrs |reqType1=...")
 
(No difference)

Latest revision as of 00:34, 1 September 2026


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