Multiply#

inline Matrix22 Multiply(const Matrix22 &a, const Matrix22 &b)#

Multiplies two 2x2 matrices.

Performs standard matrix multiplication where the result matrix element (i,j) is the dot product of row i from matrix a and column j from matrix b.

Parameters:
  • a[in] Left-hand side matrix

  • b[in] Right-hand side matrix

Returns:

Product matrix a * b