remove non-func unrotate() and fold rotinfo back into belt

This commit is contained in:
Stewart Allen 2022-11-01 23:45:11 -04:00
commit 4bc113096b
7 changed files with 43 additions and 76 deletions

View file

@ -163,7 +163,8 @@ function encodePointArray(points, state, z) {
return points;
}
const array = codec.allocFloat32Array(length * 3, state.zeros);
const zeros = state ? state.zeros : undefined;
const array = codec.allocFloat32Array(length * 3, zeros);
for (let i=0, pos=0, point; i<length; i++) {
point = points[i];
@ -186,7 +187,8 @@ function encodePointArray2D(points, state) {
return points;
}
const array = codec.allocFloat32Array(length * 2, state.zeros);
const zeros = state ? state.zeros : undefined;
const array = codec.allocFloat32Array(length * 2, zeros);
for (let i=0, pos=0, point; i<length; i++) {
point = points[i];