Skip to content

Commit

Permalink
fix(vectors): centered handling in standardize()
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Feb 14, 2022
1 parent 247c29d commit 8a5a81f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vectors/src/standardize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const standardize = (
a: ReadonlyVec,
isCentered = false
) => {
out = isCentered ? center(out, a) : !out ? a : set(out, a);
out = !isCentered ? center(out, a) : !out ? a : set(out, a);
const d = sd(out, true);
return d > 0 ? mulN(null, out, 1 / d) : out;
};

0 comments on commit 8a5a81f

Please sign in to comment.