GLSharp.Util.Matrix4X4.Transpose C# (CSharp) Method

Transpose() public method

public Transpose ( ) : Matrix4X4
return Matrix4X4
        public Matrix4X4 Transpose()
        {
            float a01 = Elements[1], a02 = Elements[2], a03 = Elements[3];
            float a12 = Elements[6], a13 = Elements[7];
            float a23 = Elements[11];

            Elements[1] = Elements[4];
            Elements[2] = Elements[8];
            Elements[3] = Elements[12];
            Elements[4] = a01;
            Elements[6] = Elements[9];
            Elements[7] = Elements[13];
            Elements[8] = a02;
            Elements[9] = a12;
            Elements[11] = Elements[14];
            Elements[12] = a03;
            Elements[13] = a13;
            Elements[14] = a23;

            return this;
        }