Nu/Nu.Math/Matrix3x3.cs
/// <summary>
/// Calculate the transpose of the given matrix
/// </summary>
/// <param name="mat">The matrix to transpose</param>
/// <param name="result">The result of the calculation</param>
Calculate the transpose of the given matrix
Calculate the transpose of the given matrix
public static void Transpose(ref Matrix3x3 mat, out Matrix3x3 result)
        {
            result.Row0.X = mat.Row0.X;
            result.Row0.Y = mat.Row1.X;
            result.Row0.Z = mat.Row2.X;
            result.Row1.X = mat.Row0.Y;
            result.Row1.Y = mat.Row1.Y;
            result.Row1.Z = mat.Row2.Y;
            result.Row2.X = mat.Row0.Z;
            result.Row2.Y = mat.Row1.Z;
            result.Row2.Z = mat.Row2.Z;
        }
public static void Transpose ( ref Matrix3x3 mat , out Matrix3x3 result ) { result . Row0 . X = mat . Row0 . X ; result . Row0 . Y = mat . Row1 . X ; result . Row0 . Z = mat . Row2 . X ; result . Row1 . X = mat . Row0 . Y ; result . Row1 . Y = mat . Row1 . Y ; result . Row1 . Z = mat . Row2 . Y ; result . Row2 . X = mat . Row0 . Z ; result . Row2 . Y = mat . Row1 . Z ; result . Row2 . Z = mat . Row2 . Z ; }
Calculate the transpose of the given matrix
Calculate the transpose of the given matrix
Matrix3x3
out
<not_specific>
mat
<not_specific>
The matrix to transpose
The matrix to transpose
result
<not_specific>
The result of the calculation
The result of the calculation