(vector, k)
| 132263 | a[0] += b[0], a[1] += b[1], a[2] += b[2]; |
| 132264 | } |
| 132265 | function cartesianScale(vector, k) { |
| 132266 | return [ |
| 132267 | vector[0] * k, |
| 132268 | vector[1] * k, |
| 132269 | vector[2] * k |
| 132270 | ]; |
| 132271 | } |
| 132272 | function cartesianNormalizeInPlace(d) { |
| 132273 | var l = (0, _mathJs.sqrt)(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]); |
| 132274 | d[0] /= l, d[1] /= l, d[2] /= l; |
nothing calls this directly
no outgoing calls
no test coverage detected