如何将自定义值设置为 CGAffineTransformation 上的最大值?
我正在研究仪表图。我正在使用 CGAffineTransformation 来旋转箭头。它接受以弧度表示的值。在那里我想使用不同的值。就像 180 是最大值,所以我想给它分配一些值,比如 1000。如果我将值比如 700 传递给 CGAffineTransformation,箭头应该旋转到 700。请建议。谢谢。
I'm working on gauge graph. I'm using CGAffineTransformation for rotating the arrow. It accepts value in radians. There I want to use different value. Like 180 is max so i want to assign it some value say 1000. n if i pass value say 700 to CGAffineTransformation, the arrow should rotate till 700. Please suggest. Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是说)
取模运算
?尝试使用 fmod() (不要忘记 #import
You mean
modulo operation
?Try using fmod() (don't forget to #import <tgmath.h>)