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(n)

Arguments

NameTypeDescription
nmat4The matrix.

Returns

NameTypeDescription
mmat4The original matrix, containing the result.

v = mat4:mul(v)

Arguments

NameTypeDescription
vvec3The vector.

Returns

NameTypeDescription
vvec3The transformed vector.

See also