Name Edit
mul - multiply a matrix by a column vector, row vector by a matrix, or matrix by a matrix
Synopsis Edit
vector4 mul(matrix M, vector4 v); vector4 mul(matrix M, vector3 v); vector4 mul(matrix M, vector2 v); vector4 mul(matrix M, vector1 v);
Parameters Edit
- M
- Matrix
- v
- Vector
- A
- Matrix
- B
- Matrix
Description Edit
Returns the vector result of multiplying a matrix M by a column vector v; a row vector v by a matrix M; or a matrix A by a second matrix B.
The following are algebrically equal (if not necessarily numerically equal):
mul(M,v) == mul(v, tranpose(M)) mul(v,M) == mul(tranpose(M), v)