コード例 #1
0
ファイル: Matrix3.cs プロジェクト: CronosJoe/AIEMathForGames
        //rotates the matrix by the rotated x matrix.
        public void RotateX(double radians)
        {
            Matrix3 m = new Matrix3();

            m.SetRotateX(radians);
            Set(this * m);
        }
コード例 #2
0
ファイル: Matrix3.cs プロジェクト: CronosJoe/AIEMathForGames
        public void SetEuler(float pitch, float yaw, float roll)
        {
            Matrix3 x = new Matrix3();
            Matrix3 y = new Matrix3();
            Matrix3 z = new Matrix3();

            x.SetRotateX(pitch);
            y.SetRotateY(yaw);
            z.SetRotateZ(roll);
            // combine rotations in a specific order
            Set(z * y * x);
        }