Beispiel #1
0
 public static void RotationInAction(int TypeFigure, int StartRotationPosition, List <Point> figure)
 {
     if (TypeFigure == 0)
     {
         FigureCreator.RotationLine(StartRotationPosition, figure);
     }
     else if (TypeFigure == 2)
     {
         FigureCreator.RotationL(StartRotationPosition, figure);
     }
     else if (TypeFigure == 3)
     {
         FigureCreator.RotationTri(StartRotationPosition, figure);
     }
     else if (TypeFigure == 4)
     {
         FigureCreator.RotationReversalL(StartRotationPosition, figure);
     }
     else if (TypeFigure == 5)
     {
         FigureCreator.RotationLeftAngle(StartRotationPosition, figure);
     }
     else if (TypeFigure == 6)
     {
         FigureCreator.RotationRightAngle(StartRotationPosition, figure);
     }
 }
Beispiel #2
0
 public static void StartRotation(int TypeFigure, int StartRotationPosition, List <Point> figure)
 {
     for (int x = 1; x <= StartRotationPosition; x++)
     {
         if (TypeFigure == 0)
         {
             FigureCreator.RotationLine(x, figure);
         }
         else if (TypeFigure == 2)
         {
             FigureCreator.RotationL(x, figure);
         }
         else if (TypeFigure == 3)
         {
             FigureCreator.RotationTri(x, figure);
         }
         else if (TypeFigure == 4)
         {
             FigureCreator.RotationReversalL(x, figure);
         }
         else if (TypeFigure == 5)
         {
             FigureCreator.RotationLeftAngle(x, figure);
         }
         else if (TypeFigure == 6)
         {
             FigureCreator.RotationRightAngle(x, figure);
         }
     }
 }