예제 #1
0
        private void Rotate()
        {
            double rotatingX = DegreesToRadians((double)numericUpDown4.Value);
            double rotatingY = DegreesToRadians((double)numericUpDown5.Value);
            double rotatingZ = DegreesToRadians((double)numericUpDown6.Value);

            CurrentDrawable.Apply(Transformations.RotateX(rotatingX)
                                  * Transformations.RotateY(rotatingY)
                                  * Transformations.RotateZ(rotatingZ));
            sceneView1.Refresh();
        }
예제 #2
0
        private void Rotate()
        {
            double rotatingX = DegreesToRadians((double)numericUpDown4.Value);
            double rotatingY = DegreesToRadians((double)numericUpDown5.Value);
            double rotatingZ = DegreesToRadians((double)numericUpDown6.Value);

            cur_obj.Apply(Transformations.RotateX(rotatingX)
                          * Transformations.RotateY(rotatingY)
                          * Transformations.RotateZ(rotatingZ));
            pictureBox1.Invalidate();
        }