如何基于 CGA 欧拉角度计算 3×3 旋转矩阵 R
alpha, beta, gamma = angles in radians
R = Rx(alpha) * Ry(beta) * Rz(gamma)
sa = sin(alpha);
ca = cos(alpha);
sb = sin(beta);
cb = cos(beta);
sg = sin(gamma);
cg = cos(gamma);
R[0][0] = cb*cg;
R[0][1] = sa*sb*cg - ca*sg;
R[0][2] = sa*sg + ca*sb*cg;
R[1][0] = cb*sg;
R[1][1] = ca*cg + sa*sb*sg;
R[1][2] = ca*sb*sg - sa*cg;
R[2][0] = -sb;
R[2][1] = sa*cb;
R[2][2] = ca*cb;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。