美文网首页
CGAffineTransformMakeRotation

CGAffineTransformMakeRotation

作者: 萌二宝 | 来源:发表于2016-07-21 11:41 被阅读264次

. CGAffineTransformMakeRotation方法

进行旋转
一般我们理解的旋转为:0-360(度)
CGAffineTransformMakeRotation方法,使用的是M_PI的方式。
转化公式:0-360=0-2M_PI

CGAffineTransformMakeRotation(M_PI * -0.5);
也就是旋转-90度

相关文章

网友评论

      本文标题:CGAffineTransformMakeRotation

      本文链接:https://www.haomeiwen.com/subject/xugcjttx.html