Get just the rotation from a CGAffineTransform
iphone, objective-c, transform
Solution
Take the asin() or acos() of the affine member b or c.
struct CGAffineTransform {
CGFloat a;
CGFloat b;
CGFloat c;
CGFloat d;
CGFloat tx;
CGFloat ty;
};
Problem
Is it possible to get just the angle of rotation from a CGAffineTransform that also has translation and scaling values? If yes, how? Thanks in advance!