FANDOM


Matrix Mul MxM

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)

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.