Transpose#

inline Matrix22 Transpose(const Matrix22 &a)#

Computes the transpose of a 2x2 matrix.

Creates a new matrix where rows and columns are swapped. Element (i,j) in the transpose equals element (j,i) in the original matrix.

Parameters:

a[in] Matrix to transpose

Returns:

Transposed matrix