(arr1, arr2)
| 386 | // Copy vertex data from one array into another. |
| 387 | // Arrays must be the same length. |
| 388 | function copyVerticesTo(arr1, arr2) { |
| 389 | const len = arr1.length; |
| 390 | for (let i=0; i<len; i++) { |
| 391 | const v1 = arr1[i]; |
| 392 | const v2 = arr2[i]; |
| 393 | v2.x = v1.x; |
| 394 | v2.y = v1.y; |
| 395 | v2.z = v1.z; |
| 396 | } |
| 397 | } |
| 398 | |
| 399 | // Compute triangle midpoint. |
| 400 | // Mutates `middle` property of given `poly`. |
no outgoing calls
no test coverage detected