在iOS中进行矢量/矩阵数学的最简单方法是什么?
我想在iOS应用中执行一些简单的线性代数。我需要乘以几个4x4矩阵,然后用VEC4乘以它。
我看到有catransform3d
似乎可以实现一些基本的矩阵乘法功能,但是我似乎找不到有关核心动画中向量乘法的任何内容。
有没有一种方法可以使用catransform3d
来完成此操作,否则还有另一个线性代数库是iOS SDK的一部分?
I want to do some simple linear algebra in an iOS app. I need to multiply a couple 4x4 matrices, and then multiply it with a vec4.
I see there is CATransform3D
which appears to implement some basic matrix multiplication features, but I can't seem to find anything about vector multiplications in core animation.
Is there a way to accomplish this with CATransform3D
, or else is there another Linear Algebra library that comes as part of the iOS SDK?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论