Skip to content

Commit

Permalink
fix(matrices): mixQ result handling
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jul 8, 2019
1 parent 78a9185 commit cc9ab35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/matrices/src/mixq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export const mixQ = (
u = Math.sin(theta * (1 - t)) / stheta;
v = Math.sin(theta * t) / stheta;
}
return maddN4(null, b, v, mulN4(out, a, u));
!out && (out = a);
return maddN4(out, b, v, mulN4(out, a, u));
}
return a !== out ? set4(out, a) : out;
};

0 comments on commit cc9ab35

Please sign in to comment.