MIST hex cubeRing

From DCS World Wiki - Hoggitworld.com


mist.hex.cubeRing

Added with: Mist 4.6
Description
Returns a table of hashed hex entries in a ring at a distance of the radius from a center hex.

This function is used in mist.hexcubeSpiral to get the each ring of hexes. It is useful if you want to write your own spiral function to check assorted details of each hex as you iterate.

Syntax
table mist.hex.cubeRing(table centerQRS ,number radius )
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