Files
railwaysystem/RuoYi-Vue/ruoyi-ui/node_modules1/gl-vec2/round.js
T

14 lines
270 B
JavaScript
Raw Normal View History

2026-09-10 15:40:10 +08:00
module.exports = round
/**
* Math.round the components of a vec2
*
* @param {vec2} out the receiving vector
* @param {vec2} a vector to round
* @returns {vec2} out
*/
function round(out, a) {
out[0] = Math.round(a[0])
out[1] = Math.round(a[1])
return out
}