Converts the framework's integer square or odd-q hex coordinate to 3D world space.
import { gridPoint3D } from '@datamoc/mwg/3d';//cell (3, 2), one level up, on a grid of 2-unit tiles with 0.5-unit levelsconst point = gridPoint3D('square', 3, 2, 2, 1, 0.5);console.log(point); // { x: 6, y: 0.5, z: 4 } Copy
import { gridPoint3D } from '@datamoc/mwg/3d';//cell (3, 2), one level up, on a grid of 2-unit tiles with 0.5-unit levelsconst point = gridPoint3D('square', 3, 2, 2, 1, 0.5);console.log(point); // { x: 6, y: 0.5, z: 4 }
Converts the framework's integer square or odd-q hex coordinate to 3D world space.