Loading lib_rend/ivas_rotation.c +1 −2 Original line number Diff line number Diff line Loading @@ -119,8 +119,6 @@ void QuatToRotMat( float Rmat[3][3] /* o : real-space rotation matrix for this rotation */ ) { float s1, s2, s3, c1, c2, c3; #ifdef FIX_I109_ORIENTATION_TRACKING Rmat[0][0] = quat.w * quat.w + quat.x * quat.x - quat.y * quat.y - quat.z * quat.z; Rmat[0][1] = 2.0f * ( quat.x * quat.y - quat.w * quat.z ); Loading @@ -134,6 +132,7 @@ void QuatToRotMat( Rmat[2][1] = 2.0f * ( quat.y * quat.z + quat.w * quat.x ); Rmat[2][2] = quat.w * quat.w - quat.x * quat.x - quat.y * quat.y + quat.z * quat.z; #else float s1, s2, s3, c1, c2, c3; #ifdef DEBUGGING /* PrintQuat( quat ); */ Loading Loading
lib_rend/ivas_rotation.c +1 −2 Original line number Diff line number Diff line Loading @@ -119,8 +119,6 @@ void QuatToRotMat( float Rmat[3][3] /* o : real-space rotation matrix for this rotation */ ) { float s1, s2, s3, c1, c2, c3; #ifdef FIX_I109_ORIENTATION_TRACKING Rmat[0][0] = quat.w * quat.w + quat.x * quat.x - quat.y * quat.y - quat.z * quat.z; Rmat[0][1] = 2.0f * ( quat.x * quat.y - quat.w * quat.z ); Loading @@ -134,6 +132,7 @@ void QuatToRotMat( Rmat[2][1] = 2.0f * ( quat.y * quat.z + quat.w * quat.x ); Rmat[2][2] = quat.w * quat.w - quat.x * quat.x - quat.y * quat.y + quat.z * quat.z; #else float s1, s2, s3, c1, c2, c3; #ifdef DEBUGGING /* PrintQuat( quat ); */ Loading