mat4:__mul

Multiplies this matrix by another value. Multiplying by a matrix combines their two transforms together. Multiplying by a vector applies the transformation from the matrix to the vector and returns the vector.

m = mat4:__mul(m, n)

Arguments

NameTypeDescription
mmat4The matrix.
nmat4Another matrix.

Returns

NameTypeDescription
mmat4A new matrix containing the multiplied result.

u = mat4:__mul(v)

Arguments

NameTypeDescription
vvec3The vector.

Returns

NameTypeDescription
uvec3A new transformed vector.

See also