当前位置:网站首页>根据角度进行旋转
根据角度进行旋转
2022-04-22 23:52:00 【~废弃回忆 �༄】
@implementation UIView (****)
/** 旋转角度(x、y、z)*/
- (void)transform3DMakeRotationX:(CGFloat)angleX Y:(CGFloat)angleY Z:(CGFloat)angleZ
{
CATransform3D transform3D = CATransform3DIdentity;
if (angleX != 0) {
transform3D = CATransform3DConcat(transform3D, CATransform3DMakeRotation(angleX*M_PI/180.0, 1, 0, 0));
}
if (angleY != 0) {
transform3D = CATransform3DConcat(transform3D, CATransform3DMakeRotation(angleY*M_PI/180.0, 0, 1, 0));
}
if (angleZ != 0) {
transform3D = CATransform3DConcat(transform3D, CATransform3DMakeRotation(angleZ*M_PI/180.0, 0, 0, 1));
}
self.layer.transform = transform3D;
}
@end
版权声明
本文为[~废弃回忆 �༄]所创,转载请带上原文链接,感谢
https://blog.csdn.net/eastWind1101/article/details/117434914
边栏推荐
- Redis Cluster集群收缩主从节点的方法
- 【Pygame小游戏】Chrome上的小恐龙竟可以用代码玩儿了?它看起来很好玩儿的样子~
- 51 单片机学习_4-1 数码管显示
- IOT identity awareness
- Typora樣式調優
- FPGA(六)RTL代码之二(复杂电路设计1)
- Vs write assembly
- OpenCv入门(二)——仿射变换和透视变换
- [gestion des transactions]
- [leetcode] binary tree, 226 flip the binary tree, 116 fill in the right pointer of the binary tree node, and 114 expand the binary tree into a linked list
猜你喜欢

Introduction to cloud computing simulation framework cloudsim (screenshot version)

FPGA(五)RTL代码之一(跨时钟域设计)

2022硬刚PLUS德施曼年度峰会:多款领航旗舰发布,引领高端市场
![[* ctf2022] Web Topic reproduction and WP](/img/b2/baaa8a0170d787a7585e7463c9a4f8.png)
[* ctf2022] Web Topic reproduction and WP
![[turtle confession collection]](/img/81/b4bacc23691e58e403f1330d0ca7cf.jpg)
[turtle confession collection] "the moon at the bottom of the sea is the moon in the sky, and the person in front of us is the sweetheart." More joy and peace for the rest of your life ~ (with 3 sourc
![FileNotFoundError: [Errno 2] No such file or directory: 'image/1. Jpg 'problem solving](/img/72/dca1064713646f909c4a7a8567a742.png)
FileNotFoundError: [Errno 2] No such file or directory: 'image/1. Jpg 'problem solving

云计算仿真框架CloudSim介绍(截图版)

51 single chip microcomputer learning_ 4-1 nixie tube display

grid_map(6):grid-mapping-in-ROS编译运行

Redis Cluster集群收缩主从节点的方法
随机推荐
VsCode使用EmmyLua插件调试Unity工程ToLua代码
[Objective-C advanced programming] - GCD
51 single chip microcomputer learning_ 4-2 nixie tube dynamic display
FileNotFoundError: [Errno 2] No such file or directory: 'image/1.jpg'问题解决
Failed to execute goal on project xxxxx
[*CTF2022]web题目复现及wp
在windows7下安装vs2017插件 GLSL language integration v0.10.120.vsix报错:microsoft.visualc.redist.12
51 single chip microcomputer learning_ 4-1 nixie tube display
[leetcode] binary tree, 654 largest binary tree, 105 constructs binary tree according to preorder and inorder traversal, 106 constructs binary tree according to inorder and postorder traversal, and 88
Django创建表结构及对数据库增删改查
彻底解决Failed to execute goal on project xxxxx
2022硬刚PLUS德施曼年度峰会:多款领航旗舰发布,引领高端市场
程序设计语言基础(1)
FPGA(四)数字IC面试的四个基本问题
Complete set of JUC (1)
项目实训-小鬼僵尸
用C语言编写一个俄罗斯方块小游戏
“亿”点点技术情怀
FPGA (VI) RTL code II (complex circuit design 1)
[leetcode] binary tree, 226 flip the binary tree, 116 fill in the right pointer of the binary tree node, and 114 expand the binary tree into a linked list