(points, fx, fy, that)
| 87761 | } |
| 87762 | exports.default = Delaunay; |
| 87763 | function flatArray(points, fx, fy, that) { |
| 87764 | const n = points.length; |
| 87765 | const array = new Float64Array(n * 2); |
| 87766 | for(let i = 0; i < n; ++i){ |
| 87767 | const p = points[i]; |
| 87768 | array[i * 2] = fx.call(that, p, i, points); |
| 87769 | array[i * 2 + 1] = fy.call(that, p, i, points); |
| 87770 | } |
| 87771 | return array; |
| 87772 | } |
| 87773 | function* flatIterable(points, fx, fy, that) { |
| 87774 | let i = 0; |
| 87775 | for (const p of points){ |