D2 Indices and matrices Matrix representation in computer systems: the relationship between matrices and arrays mathematical operations using matrices single, two- and multi-dimensional arrays row-major and column-major order.
A matrix is a rectangular collection of numbers which can be used in mathematical operations. Matrices are used in many areas of computing including in the calculations needed for ‘wire-framing’, which forms the basis of virtual gaming landscapes. A 2D matrix has 2 rows which can be used to hold the (x, y) coordinates of a shape. These can be multiplied by other matrices to produce new (x, y) coordinates for operations such as rotation, mirroring, resizing, and so on. Indices are used to identify items in a matrix. Arrays are similar to Matrices and sometimes are saved in the same format due to their similarity.
mathematical operations using matrices Mathematical operations include adding, subtracting etc. of matrices to allow them to be manipulated as shapes.
mathematical operations using matrices Mathematical operations include adding, subtracting etc. of matrices to allow them to be manipulated as shapes.