Skip to content

Commit 5f257bc

Browse files
makrylgreggman
authored andcommitted
normalize zero length quaternions
1 parent bca5733 commit 5f257bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/quat-impl.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ function normalize<T extends QuatArg = QuatType>(v: QuatArg, dst?: T) {
728728
newDst[0] = 0;
729729
newDst[1] = 0;
730730
newDst[2] = 0;
731-
newDst[3] = 0;
731+
newDst[3] = 1;
732732
}
733733

734734
return newDst;

0 commit comments

Comments
 (0)