· Appendix A 9. Matrix (
Cai Junsheng All rights reserved
)
Direct3D uses a matrix tool to implement 3D transformation. In fact, the matrix is used to calculate the most convenient tool for linear algebra, because the coordinate transformation is composed of linear equations, and it is necessary to use the tool to calculate it, is the best way. In 3D, the most commonly used a matrix of 4 rows of 4 columns, as it can more conveniently calculate translation, rotation, and scaling of three-dimensional coordinate. If you use 3 lines of matrices, it is difficult to indicate translation. Next, discuss the following: 3D transformation translation and zoom rotation matrix combination