#include <glmatrix.h>
Friends | |
| void | MultMatrix4 (const Matrix4 &a, const Matrix4 &b, Matrix4 *c) |
| C = AB. | |
| void | MultMatrix4 (const Matrix4 &a, const Vector3F &b, Vector3F *c) |
| w = Mv. | |
Although the bottom row is typically 0,0,0,1 this implementation uses the full 4x4 computation.
It uses the (unfortutate) OpenGL layout:
( m[0] m[4] m[8] m[12] ) ( v[0])
| m[1] m[5] m[9] m[13] | | v[1]|
M(v) = | m[2] m[6] m[10] m[14] | x | v[2]|
( m[3] m[7] m[11] m[15] ) ( v[3])
| void MultMatrix4 | ( | const Matrix4 & | a, | |
| const Vector3F & | b, | |||
| Vector3F * | c | |||
| ) | [friend] |
w = Mv.
Multiply a vector by a matrix. A vector is a column in column-major form.
C = AB.
Perform the operation in column-major form, meaning a vector as a columns. Note the target parameter is the last parameter, although it is more comfortable expressed: C = AB
1.4.7