MIST hex pointToHex

From DCS World Wiki - Hoggitworld.com
Revision as of 01:29, 1 September 2026 by Grimes (talk | contribs) (Created page with "{{Mission Scripting |fName= mist.hex.pointToHex| |vNum = Mist 4.6 |desc= Converts a vec2 or vec3 point into a qrs coordinate. The "error" of converting to a qrs and that...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


mist.hex.pointToHex

Added with: Mist 4.6
Description
Converts a vec2 or vec3 point into a qrs coordinate.

The "error" of converting to a qrs and that qrs back to a point will depend on the size of the hexRadius set.

Syntax
table mist.hex.pointToHex(table vec2/vec3 )
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