ATHISUS
ATHISUS

Reputation: 11

iOS SDK CGAffineTransform Angle Question

I need to get angle in radians. I have:

CGFloat angle = asin(myImage.transform.b);

This seems to be not working. I need to extract the angle of 'myImage' at any moment in time. How would I extract this?

Upvotes: 0

Views: 899

Answers (1)

ATHISUS
ATHISUS

Reputation: 11

CGFloat angle = atan2(card.transform.b, card.transform.a);

That does it.

Upvotes: 1

Related Questions