{"id":32,"date":"2013-11-08T15:46:23","date_gmt":"2013-11-08T15:46:23","guid":{"rendered":"\/\/3dbym.ru\/2013\/11\/understanding-and-using-matrices\/"},"modified":"2013-11-08T15:46:23","modified_gmt":"2013-11-08T15:46:23","slug":"understanding-and-using-matrices","status":"publish","type":"post","link":"https:\/\/3dbym.ru\/2013\/11\/understanding-and-using-matrices\/","title":{"rendered":"Understanding and Using Matrices"},"content":{"rendered":"
Just what is a matrix you ask? Well, simply put, a matrix is a rectangular array of numbers. A few examples of matrices are shown in Figure 1.1. You know what they look like, but just what are they good for? Well, mathematicians like to use them to represent systems of linear equa\u00adtions. Using matrix operations, it is possible to solve these systems with much less work than using other methods, such as substitution, to solve them. In computer graphics, however, matrices are used to represent transformations. Transformations are essentially rotations and translation values for an object. The nice thing about using matrices for this type of thing is the fact that transformations can be combined using simple algebra, making it easy for you, and fast within your programs.<\/p>\n
Most of the matrices that are used in graphics programming are square matrices. A square matrix is simply a matrix that has the same number of rows as columns. The leftmost matrix in Figure 1.1 is a square matrix. Generally, 3D math only requires matrices that are 3×3 or 4×4 elements. For clarity, and to simply keep the size of the figures<\/p>\n<\/p>\n
<\/p>\n
\n 2<\/p>\n 1<\/p>\n 3<\/p>\n 4<\/p>\n<\/td>\n<\/tr>\n<\/table>\n <\/p>\n
|