* Adds two vec2's * * @param {vec2} out the receiving vector * @param {vec2} a the first operand * @param {vec2} b the second operand * @returns {vec2} out
(out, a, b)
| 16089 | |
| 16090 | |
| 16091 | function add(out, a, b) { |
| 16092 | out[0] = a[0] + b[0]; |
| 16093 | out[1] = a[1] + b[1]; |
| 16094 | return out; |
| 16095 | } |
| 16096 | /** |
| 16097 | * Subtracts vector b from vector a |
| 16098 | * |
no test coverage detected