Round position to specified decimal places
Three.js Vector3
Number of decimal places (default 3)
Rounded position as array [x, y, z]
const rounded = roundPosition(model.position, 2);// [1.23, 4.56, 7.89] Copy
const rounded = roundPosition(model.position, 2);// [1.23, 4.56, 7.89]
Round position to specified decimal places