Exemple #1
0
        /// <summary>
        /// Transposes the specified matrix.
        /// </summary>
        /// <param name="matrix">The <see cref="Mat2x3"/> to transpose.</param>
        /// <param name="result">The transposed <see cref="Mat3x2"/>.</param>
        public static void Transpose(ref Mat2x3 matrix, out Mat3x2 result)
        {
            Mat3x2 temp;

            temp.M11 = matrix.M11;
            temp.M12 = matrix.M21;
            temp.M13 = matrix.M31;

            temp.M21 = matrix.M12;
            temp.M22 = matrix.M22;
            temp.M23 = matrix.M32;

            result = temp;
        }
Exemple #2
0
        /// <summary>
        /// Transposes the specified matrix.
        /// </summary>
        /// <param name="matrix">The <see cref="Mat3x2"/> to transpose.</param>
        /// <param name="result">The transposed <see cref="Mat2x3"/>.</param>
        public static void Transpose(ref Mat3x2 matrix, out Mat2x3 result)
        {
            Mat2x3 temp;

            temp.M11 = matrix.M11;
            temp.M12 = matrix.M21;

            temp.M21 = matrix.M12;
            temp.M22 = matrix.M22;

            temp.M31 = matrix.M13;
            temp.M32 = matrix.M23;

            result = temp;
        }