rhb-server/mes-ui/rhb-app/node_modules/gl-vec2/floor.js
2025-10-20 11:14:41 +08:00

15 lines
270 B
JavaScript

module.exports = floor
/**
* Math.floor the components of a vec2
*
* @param {vec2} out the receiving vector
* @param {vec2} a vector to floor
* @returns {vec2} out
*/
function floor(out, a) {
out[0] = Math.floor(a[0])
out[1] = Math.floor(a[1])
return out
}