(points, fx, fy, that)
| 139830 | } |
| 139831 | exports.default = Delaunay; |
| 139832 | function flatArray(points, fx, fy, that) { |
| 139833 | const n = points.length; |
| 139834 | const array = new Float64Array(n * 2); |
| 139835 | for(let i = 0; i < n; ++i){ |
| 139836 | const p = points[i]; |
| 139837 | array[i * 2] = fx.call(that, p, i, points); |
| 139838 | array[i * 2 + 1] = fy.call(that, p, i, points); |
| 139839 | } |
| 139840 | return array; |
| 139841 | } |
| 139842 | function* flatIterable(points, fx, fy, that) { |
| 139843 | let i = 0; |
| 139844 | for (const p of points){ |