![]() |
![]() |
![]() |
| home | about | pictures | reference | trade | links |
Appendix D:Graphics matrix operations:3-D points are generally stored in four element vectors, defined as:...where X, Y, and Z are the point 3-D coordinates, and W is the 'weight', and is used to normalise the result after an operation, multiplying each element by 1/W so that W ends equal to 1.[X, Y, Z, W] Points can be moved around by matric multiplication with 4X4 transformation matrices. Multiplying a vector with a matric produces a new vector, which is the transformed point. Standard transformation matrices are:
Transformation matrices can be combined by multiplying them together,
so a single matrix can be use to shift, rotate, and scale a point in
a single operation. Other 3-D operations using vectors are also frequently
used, such as to determine intersection points or the reflection of
light rays.
Previous Page Table of Contents Next Page |