Unify the precision management of geometries

This commit is contained in:
be5invis 2020-07-01 03:49:27 -07:00
parent 15c7381673
commit 84a8cb809c
6 changed files with 45 additions and 39 deletions

View file

@ -116,11 +116,6 @@ module.exports = class SpiroExpansionContext {
}
}
};
function zeroes(n) {
let a = new Array(n);
for (let i = 0; i < n; ++i) a[i] = 0;
return a;
}
function normalX(angle, contrast) {
return Math.cos(angle) * contrast;
}