Skip to content

Math.MatMul

Name Mandatory Description Default Type
⬅️ Input Takes a matrix as input. (2x2, 3x3 or 4x4) [Float4][Float3][Float2]
Output ➡️ Returns the result of the matrix multiplication. If a matrix is multiplied by a vector, the result is a vector (depending on the dimensions of the matrix provided). If two matrices are multiplied, the result is a matrix with the same dimensions as the input matrix. [Float4]Float4[Float3]Float3[Float2]Float2
Operand No The operand for this operation. 0 Int&IntInt2&Int2Int3&Int3Int4&Int4Int8&Int8Int16&Int16Float&FloatFloat2&Float2Float3&Float3Float4&Float4Color&Color[Any]&[Any]

Performs matrix multiplication on either two matrices or a matrix and a vector and returns either a matrix or a vector accordingly. The two matrixes must be of similar dimensions (2x2, 3x3, or 4x4). And if multiplied with a vector, the vector too must have similar dimensions (2x2 with float2, 3x3 with float3, 4x4 with float4).