Skip to content

Commit

Permalink
normalize zero length quaternions
Browse files Browse the repository at this point in the history
  • Loading branch information
makryl authored and greggman committed Jul 20, 2024
1 parent bca5733 commit 5f257bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quat-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ function normalize<T extends QuatArg = QuatType>(v: QuatArg, dst?: T) {
newDst[0] = 0;
newDst[1] = 0;
newDst[2] = 0;
newDst[3] = 0;
newDst[3] = 1;
}

return newDst;
Expand Down

0 comments on commit 5f257bc

Please sign in to comment.