Skip to content

Commit 893d81b

Browse files
committed
The math issue is resolved
1 parent 4c55478 commit 893d81b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flightlog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ export function FlightLog(logData) {
741741
let m = q.x ** 2 + q.y ** 2 + q.z ** 2;
742742
if (m < 1.0) {
743743
// reconstruct .w of unit quaternion
744-
q.w = Math.sqrt(1.0 - m ** 2);
744+
q.w = Math.sqrt(1.0 - m);
745745
} else {
746746
// normalize [0,x,y,z]
747747
m = Math.sqrt(m);

0 commit comments

Comments
 (0)