sách gpt4 ai đã đi

SceneKit 转换 ScnMatrix4

In lại 作者:行者123 更新时间:2023-12-04 11:51:46 28 4
mua khóa gpt4 Nike

ScnMatrix4 是一个 4x4 矩阵。我的问题是什么矩阵行对应于位置(ScnVector3),旋转(ScnVector4),比例(ScnVector3)。第 4 行是空的吗?

biên tập:
我玩弄了 SCN4matrix,我需要它来创建具有多个楼梯的形状。

我需要有关 Shapeswithshapes 方法的矩阵的信息

  [SCNphysicsShape shapeWithShapes: (ElementArray*) :(transformArray)];

ScnMatrix4= | Xx Xy Xy X|
| Yx Yy Yz Y|
| Zx Zy Zz Z|
| Px Py Pz W|

Xx Xy Xy = The X axis vector of the local coordinate system of the shape.
Yx Yy Yz = The y axis vector of the local coordinate system of the shape.
Zx Zy Zz = The z axis vector of the local coordinate system of the shape.

Px = position in x axis relative to parent;
Py = Position in y axis relative to parent;
Pz = Position in z Axis relative to parent;
X Y Z = read the link for info;
W= 1 define that the matrix is about the position relative to parent;
W= 0 define that the matrix is about orientation;

Basicly a SCNmatriX4 completely describes the position, rotation of a node/shape.


http://www.opengl-tutorial.org/beginners-tutorials/tutorial-3-matrices/
This Link Provides a great source for all the info you need about Matrix Manipulation;

编辑 2;我不擅长编辑:(

1 Câu trả lời

核心动画编程指南简要解释了这一点:

https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/CoreAnimation_guide/CoreAnimationBasics/CoreAnimationBasics.html#//apple_ref/doc/uid/TP40004514-CH2-SW18

在复杂变换的情况下,并不总是可以直接从系数中提取位置/旋转/比例信息。

关于SceneKit 转换 ScnMatrix4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25349405/

28 4 0
Bài viết được đề xuất: r - 分面的不同 geom_rect() 对象
Bài viết được đề xuất: R 编程正态分布
Bài viết được đề xuất: r - 用另一个向量子集化一个向量
Bài viết được đề xuất: asp.net-mvc - 帖子上的 Mvc 模型 ID 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com