Exemplo n.º 1
0
        //Rotate this Matrix3 with the specified values
        public void RotateZ(double radians)
        {
            Matrix3 m = new Matrix3();

            m.SetRotateZ(radians);
            Set(this * m);
        }
Exemplo n.º 2
0
        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);

            Set(z * y * x);
        }
Exemplo n.º 3
0
        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);
        }