Engines/FlatRedBallXNA/FlatRedBall.Content/ModelAnimation/ContentUtil.cs
/// <summary>
/// Reflects a matrix across the Z axis by multiplying both the Z
/// column and the Z row by -1 such that the Z,Z element stays intact.
/// </summary>
/// <param name="m">The matrix to be reflected across the Z axis</param>
Reflects a matrix across the Z axis by multiplying both the Z
column and the Z row by -1 such that the Z,Z element stays intact.
Reflects a matrix across the Z axis by multiplying both the Z column and the Z row by - 1 such that the Z Z element stays intact .
public static void ReflectMatrix(ref Matrix m)
        {
            m.M13 *= -1;
            m.M23 *= -1;
            m.M33 *= -1;
            m.M43 *= -1;
            m.M31 *= -1;
            m.M32 *= -1;
            m.M33 *= -1;
            m.M34 *= -1;
        }
public static void ReflectMatrix ( ref Matrix m ) { m . M13 *= - 1 ; m . M23 *= - 1 ; m . M33 *= - 1 ; m . M43 *= - 1 ; m . M31 *= - 1 ; m . M32 *= - 1 ; m . M33 *= - 1 ; m . M34 *= - 1 ; }
Reflects a matrix across the Z axis by multiplying both the Z
column and the Z row by -1 such that the Z,Z element stays intact.
Reflects a matrix across the Z axis by multiplying both the Z column and the Z row by - 1 such that the Z Z element stays intact .
Matrix
ref
m
The matrix to be reflected across the Z axis
The matrix to be reflected across the Z axis