rramprasad / imumargalgorithm30042010sohm

Automatically exported from code.google.com/p/imumargalgorithm30042010sohm
0 stars 0 forks source link

Use of temporary variable. #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
    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