开发者

iOS SDK CGAffineTransform Angle Question

开发者 https://www.devze.com 2023-01-21 09:39 出处:网络
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 angl开发者_开发问答e of \'myImage\' at any moment in time.How wou

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 angl开发者_开发问答e of 'myImage' at any moment in time. How would I extract this?


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

That does it.

0

精彩评论

暂无评论...
验证码 换一张
取 消