[[1.00000000e+00 8.67361738e-19 1.35525272e-20 0.00000000e+00] [8.67361738e-19 1.00000000e+00 0.00000000e+00 0.00000000e+00] [1.35525272e-20 0.00000000e+00 1.00000000e+00 0.00000000e+00] [0.00000000e+00 0.00000000e+00 0.00000000e+00 1.00000000e+00]]转换为[[1.00000000e+00 8.67361738e-19 1.35525272e-20 0.00000000e+00] [8.67361738e-19 1.00000000e+00 0.00000000e+00 0.00000000e+00] [1.35525272e-20 0.00000000e+00 1.00000000e+00 0.00000000e+00] [0.00000000e+00 0.00000000e+00 0.00000000e+00 1.00000000e+00]][[1.00000000e+00 8.67361738e-19 1.35525272e-20 0.00000000e+00] [8.67361738e-19 1.00000000e+00 0.00000000e+00 0.00000000e+00] [1.35525272e-20 0.00000000e+00 1.00000000e+00 0.00000000e+00] [0.00000000e+00 0.00000000e+00 0.00000000e+00 1.00000000e+00]]QMatrix4x4
时间: 2023-09-26 11:09:23 浏览: 101
安装Apache提示缺少 libapr-1.so.0与libaprutil-1完美解决
5星 · 资源好评率100%
你可以使用QMatrix4x4类来实现这个转换。可以使用setTo函数将数组中的值设置到QMatrix4x4对象中,如下所示:
```
QMatrix4x4 matrix;
matrix.setTo(
1.00000000e+00, 8.67361738e-19, 1.35525272e-20, 0.00000000e+00,
8.67361738e-19, 1.00000000e+00, 0.00000000e+00, 0.00000000e+00,
1.35525272e-20, 0.00000000e+00, 1.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 1.00000000e+00
);
```
这将会创建一个QMatrix4x4对象,其值与给定的数组相同。
阅读全文