MCPcopy Create free account
hub / github.com/microsoft/SandDance / flatArray

Function flatArray

docs/app/js/sanddance-app.js:139832–139841  ·  view source on GitHub ↗
(points, fx, fy, that)

Source from the content-addressed store, hash-verified

139830}
139831exports.default = Delaunay;
139832function 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}
139842function* flatIterable(points, fx, fy, that) {
139843 let i = 0;
139844 for (const p of points){

Callers 1

fromMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected