Exemplo n.º 1
0
 private static Figure FlipX(Figure f) => Transform(f, FlipXPoint);
Exemplo n.º 2
0
 public Decision(Figure selectedFigure, Figure transformedFigure, Point placementPoint)
 {
     SelectedFigure    = selectedFigure;
     TransformedFigure = transformedFigure;
     PlacementPoint    = placementPoint;
 }
Exemplo n.º 3
0
        public static Figure RotateRight(Figure figure)
        {
            Ensure.Arg(figure, nameof(figure)).IsNotNull();

            return(Transform(figure, RotateRightPoint));
        }