Difference between revisions of "MIST hex pointToHex"

From DCS World Wiki - Hoggitworld.com
(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...")
 
(No difference)

Latest revision as of 01:29, 1 September 2026


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