Esempio n. 1
0
 private void Reset()
 {
     _c     = new Cube(Color.Black);
     _xAxis = new AxisX(2);
     _yAxis = new AxisY(2);
     _zAxis = new AxisZ(2);
     Transformations.phi   = -10;
     Transformations.theta = -100;
     _xRotation            = 0;
     _yRotation            = 0;
     _zRotation            = 0;
 }
Esempio n. 2
0
        public Form1()
        {
            InitializeComponent();
            Width  = 800;
            Height = 600;

            _xAxis = new AxisX(2);
            _yAxis = new AxisY(2);
            _zAxis = new AxisZ(2);
            _c     = new Cube(Color.Black);
            _phase = 0;
            _scale = 1;

            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
        }