Example #1
0
        public void ScaleFigure(int angle)
        {
            // wheelEvent in the python version
            double speed = 0;

            if (angle > 0)
            {
                speed = Constants.SCALE_UP_SPEED;
            }
            else if (angle < 0)
            {
                speed = Constants.SCALE_DOWN_SPEED;
            }
            if (speed != 0)
            {
                scale_matrix = TransformationMatrices.ScaleMatrix(new Point(speed, speed, speed)).Multiply(scale_matrix);
            }
        }
Example #2
0
 public void MoveFigure(Point matrix_args)
 {
     moving_matrix = TransformationMatrices.MovingMatrix(matrix_args).Multiply(
         moving_matrix
         );
 }
Example #3
0
 public void Reset()
 {
     moving_matrix = TransformationMatrices.GetEye4();
     scale_matrix  = TransformationMatrices.GetEye4().Multiply(Constants.INIT_MODEL_TO_WORLD_MATRIX);
     rotate_matrix = TransformationMatrices.GetEye4();
 }