Bcc.MultiplyMatrices
Bcc.MultiplyMatrices({matrix1},{matrix2})
Description
This function is utilized to get the result of multiplying 4x4 matrices.
Parameters
- matrix1 - table formatted as a matrix: matrix={{1,0,0,0},{0,1,0,0},{0,0,1,0},{0,0,0,1}}
- matrix2 - tabled formatted as a matrix: matrix={{1,0,0,0},{0,1,0,0},{0,0,1,0},{0,0,0,1}}
Return
Returns a table containing the resulting matrix from the multiplication
Examples
-- Define our input matrices
matrix1 = {{1,0,0,0},{0,0.7071,0.7071,0},{0,-0.7071,0.7071,0},{0,0,0,1}}
matrix2 = {{0.7071,0.7071,0,0},{-0.7071,0.7071,0,0},{0,0,1,0},{0,0,0,1}}
-- Get the inverse of the input matrix
matrix = Bcc.MultiplyMatrices(matrix1, matrix2)
The resulting information contained in would be:
matrix[1] = { 0.7071, 0.5, 0.5, 0}
matrix[2] = {-0.7071, 0.5, 0.5, 0}
matrix[3] = { 0, -0.7071, 0.7071, 0}
matrix[4] = {1,0,0,0}