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

14 lines
253 B
JavaScript

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