(vertices)
| 11 | |
| 12 | // ---- UTILITY FUNCTIONS ---- |
| 13 | function polylineLength(vertices) { |
| 14 | let length = 0; |
| 15 | for (let i = 1; i < vertices.length; i++) { |
| 16 | length += vertices[i-1].position.dist(vertices[i].position); |
| 17 | } |
| 18 | return length; |
| 19 | } |
| 20 | |
| 21 | // ---- GENERAL BUILDING BLOCKS ---- |
| 22 |
no test coverage detected