コード例 #1
0
ファイル: Interaction.cs プロジェクト: 0000duck/TestGLUT
 public Interaction()
 {
     Camera   = new Cameras();
     Rotation = new Rotate();
     Angle    = new Angles();
     Wire     = false;
 }
コード例 #2
0
        private void AutoRotating()
        {
            if (AutoRotateCheckBox.Checked)
            {
                Inter.Angle.X          = Angles.CheckAngle(Inter.Angle.X + AutoR.X);
                ValueRotateXLabel.Text = Inter.Angle.X.ToString();
                RotateXTrackBar.Value  = (int)Inter.Angle.X;

                Inter.Angle.Y          = Angles.CheckAngle(Inter.Angle.Y + AutoR.Y);
                ValueRotateYLabel.Text = Inter.Angle.Y.ToString();
                RotateYTrackBar.Value  = (int)Inter.Angle.Y;

                Inter.Angle.Z          = Angles.CheckAngle(Inter.Angle.Z + AutoR.Z);
                ValueRotateZLabel.Text = Inter.Angle.Z.ToString();
                RotateZTrackBar.Value  = (int)Inter.Angle.Z;
            }
        }