MTExample5_5.Matrix3.Rotate3X C# (CSharp) Méthode

Rotate3X() public static méthode

public static Rotate3X ( float theta ) : Matrix3
theta float
Résultat Matrix3
        public static Matrix3 Rotate3X(float theta)
        {
            theta = theta * (float)Math.PI / 180.0f;
            var sn = (float)Math.Sin(theta);
            var cn = (float)Math.Cos(theta);
            var result = new Matrix3();
            result.M[1, 1] = cn;
            result.M[1, 2] = -sn;
            result.M[2, 1] = sn;
            result.M[2, 2] = cn;
            return result;
        }