0
Q
xtk对象转换
A
回答
0
可以使用
var transform = new X.matrix(
[[-2.00000, 0.00000, 0.00000, 110.00000],
[0.00000, 0.00000, 2.00000, -71.00000],
[0.00000, -2.00000, 0.00000, 110.00000],
[0.00000, 0.00000, 0.00000, 1.00000]]);
object.transform().setMatrix(transform);
干杯!
0
用作转换矩阵的XTK Toolkit和FloatArray [16]。
mat[0] = mat[5] = mat[10] = mat[15] = 1; // identity matrix
obj.transform.matrix = mat[0] = mat[5] = mat[10] = mat[15] = 1;
x = mat [12];
y = mat [13];
z = mat [14];
相关问题
- 1. 使用XTK进行对象实例化?
- 2. 转换对象为对象
- 3. 转换对象
- 4. 转换对象
- 5. 转换对象
- 6. 对象转换
- 7. 在XTK中更换光源
- 8. java对象转换
- 9. 对象转换utitilty
- 10. 地转换对象
- 11. 转换ArrayLike对象
- 12. 转换JSON对象
- 13. 转换切换到对象
- 14. 转换的JavaScript JSON对象转换成Java JSON对象
- 15. 转换对象的数组对象
- 16. 将Javascript对象转换成jquery对象?
- 17. 转换const对象引用const对象
- 18. 转换一个NSDictionary对象到对象
- 19. 将长对象转换为对象
- 20. 将JSON对象转换为C#对象
- 21. 将Image对象转换为BufferedImage对象
- 22. 转换对象[] {新的对象[] {}}为int [] []
- 23. 将对象转换为String []对象..?
- 24. 转换JSON DateTime对象的JavaScript对象
- 25. 转换JSTL对象Java对象
- 26. 转换Date对象到日历对象
- 27. JS转换嵌套对象为对象
- 28. 转换对象数组到对象
- 29. 对象到对象转换图
- 30. 转换XML对象JSON对象
对不起,错过了一个,但它正是我所需要的。 – billhill00 2012-03-29 16:37:42