Esempio n. 1
0
        public void RotateZ(double radians)
        {
            Matrix3 m = new Matrix3();

            m.SetRotateZ(radians);
            Set(this * m);
        }
Esempio n. 2
0
        public void RotateZ(double radian)
        {
            Matrix3 scale = new Matrix3();

            scale.SetRotateZ(radian);

            Set(this * scale);
        }
Esempio 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);
            Set(z * y * x);
        }
Esempio n. 4
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 specific order
            Set(z * y * x);
        }
Esempio n. 5
0
 //set rotation to given value
 public void SetRotate(float radians)
 {
     _localTransform.SetRotateZ(radians);
     UpdateTransform();
 }