iphone Programming Glossary: quat.x
Using quaternion instead of roll, pitch and yaw to track device motion http://stackoverflow.com/questions/19239482/using-quaternion-instead-of-roll-pitch-and-yaw-to-track-device-motion as CMQuaternion quat self.motionManager.deviceMotion.attitude.quaternion myRoll radiansToDegrees atan2 2 quat.y quat.w quat.x quat.z 1 2 quat.y quat.y 2 quat.z quat.z myPitch radiansToDegrees atan2 2 quat.x quat.w quat.y quat.z 1 2 quat.x quat.x.. atan2 2 quat.y quat.w quat.x quat.z 1 2 quat.y quat.y 2 quat.z quat.z myPitch radiansToDegrees atan2 2 quat.x quat.w quat.y quat.z 1 2 quat.x quat.x 2 quat.z quat.z myYaw radiansToDegrees 2 quat.x quat.y quat.w quat.z When i noticed.. quat.x quat.z 1 2 quat.y quat.y 2 quat.z quat.z myPitch radiansToDegrees atan2 2 quat.x quat.w quat.y quat.z 1 2 quat.x quat.x 2 quat.z quat.z myYaw radiansToDegrees 2 quat.x quat.y quat.w quat.z When i noticed there is some disparity in the..
|