关于CATransform3D
参考文章:关于CATransform3D
CATransform3DMakeRotation的使用
1 | /* Returns a transform that rotates by 'angle' radians about the vector |
angle:旋转角度
后面的x,y,z三个值组合表示坐标系里面的一个点(x,y,z),由原点和该点(x,y,z)形成一条旋转轴
CATransform3DMakeRotation是按最短路径来选择的
参考文章:关于CATransform3D
1 | /* Returns a transform that rotates by 'angle' radians about the vector |
angle:旋转角度
后面的x,y,z三个值组合表示坐标系里面的一个点(x,y,z),由原点和该点(x,y,z)形成一条旋转轴
CATransform3DMakeRotation是按最短路径来选择的