| 350 | //////////////////// |
| 351 | |
| 352 | const normalize = v => { |
| 353 | const mag = Math.hypot(v.x, v.y, v.z); |
| 354 | return { |
| 355 | x: v.x / mag, |
| 356 | y: v.y / mag, |
| 357 | z: v.z / mag |
| 358 | }; |
| 359 | } |
| 360 | |
| 361 | // Curried math helpers |
| 362 | const add = a => b => a + b; |
nothing calls this directly
no outgoing calls
no test coverage detected