q0 = q0 + (-q1*gx - q2*gy - q3*gz)*halfT;
q1 = q1 + (q0*gx + q2*gz - q3*gy)*halfT;
q2 = q2 + (q0*gy - q1*gz + q3*gx)*halfT;
q3 = q3 + (q0*gz + q1*gy - q2*gx)*halfT;
You must use temporary variables for q0-q3 here, must not make the assignments
directly, as q0-3 are used in the other equations.
Original issue reported on code.google.com by occhiobe...@gmail.com on 22 Nov 2011 at 9:13
Original issue reported on code.google.com by
occhiobe...@gmail.com
on 22 Nov 2011 at 9:13