Files
railwaysystem/RuoYi-Vue/ruoyi-ui/node_modules1/gl-vec2/negate.js
T
2026-09-10 15:40:10 +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
}