¡@

Home 

2014/10/15 ¤U¤È 10:14:13

iphone Programming Glossary: sin.a

iPhoneSDK calculate Rotation angle from CATransform3D

http://stackoverflow.com/questions/3565383/iphonesdk-calculate-rotation-angle-from-catransform3d

what axis you are doing the rotation on. Rotation about the z axis is represented as a angle in radians x' x cos.a y sin.a y' x sin.a y cos.a z' z cos.a sin.a 0 0 sin.a cos.a 0 0 0 0 1 0 0 0 0 1 so angle should be a atan2 transform.m12 transform.m11.. you are doing the rotation on. Rotation about the z axis is represented as a angle in radians x' x cos.a y sin.a y' x sin.a y cos.a z' z cos.a sin.a 0 0 sin.a cos.a 0 0 0 0 1 0 0 0 0 1 so angle should be a atan2 transform.m12 transform.m11 Rotation.. on. Rotation about the z axis is represented as a angle in radians x' x cos.a y sin.a y' x sin.a y cos.a z' z cos.a sin.a 0 0 sin.a cos.a 0 0 0 0 1 0 0 0 0 1 so angle should be a atan2 transform.m12 transform.m11 Rotation about x axis a angle..