(polygon)
| 103676 | return arr2; |
| 103677 | } |
| 103678 | function validate(polygon) { |
| 103679 | polygon = polygon && polygon.positions || polygon; |
| 103680 | if (!Array.isArray(polygon) && !ArrayBuffer.isView(polygon)) throw new Error("invalid polygon"); |
| 103681 | } |
| 103682 | function isSimple(polygon) { |
| 103683 | return polygon.length >= 1 && polygon[0].length >= 2 && Number.isFinite(polygon[0][0]); |
| 103684 | } |
no outgoing calls
no test coverage detected