public AddPointAfterAction(Surface surface, Vertex vertex, double x, double y)
 {
     Surface = surface;
     Vertex = vertex;
     X = x;
     Y = y;
 }
Exemplo n.º 2
0
 public MoveShapeAction(Surface surface, Vector delta)
 {
     Surface = surface;
     Delta = delta;
 }
Exemplo n.º 3
0
 public MovePointsAction(Surface surface, IReadOnlyCollection<Vertex> points, Vector delta)
 {
     Surface = surface;
     Points = points;
     Delta = delta;
 }
Exemplo n.º 4
0
 public MovePointsAction(Surface surface, Vertex vertex, Vector delta)
 {
     Surface = surface;
     Points = new [] { vertex };
     Delta = delta;
 }
 public RotateFigureAction(Surface surface, double agnle)
 {
     Surface = surface;
     Agnle = agnle;
 }
Exemplo n.º 6
0
 public SelectShapeAction(Surface surface)
 {
     Surface = surface;
 }
Exemplo n.º 7
0
 public Scene RemovePoint(Surface surface, Vertex vertex)
 {
     return Create(Surfaces.Replace(surface, surface.RemovePoint(vertex)));
 }
Exemplo n.º 8
0
 public Scene AddPoint(Surface surface, Vertex vertex, Vertex previous)
 {
     return Create(Surfaces.Replace(surface, surface.AddPoint(vertex, previous)));
 }
Exemplo n.º 9
0
 public Scene MovePoint(Surface surface, Vertex vertex, Vector delta)
 {
     return Create(Surfaces.Replace(surface, surface.MovePoint(vertex, delta)));
 }
Exemplo n.º 10
0
 public Scene Replace(Surface oldValue, Surface newValue)
 {
     return Create(Surfaces.Replace(oldValue, newValue));
 }
Exemplo n.º 11
0
 public Scene MoveSurface(Surface surface, Vector delta)
 {
     return Create(Surfaces.Replace(surface, surface.Move(delta)));
 }
Exemplo n.º 12
0
 public Scene AddSurface(Surface surface)
 {
     return Create(Surfaces.Add(surface));
 }
Exemplo n.º 13
0
 public RemovePointAction(Surface surface, Vertex vertex)
 {
     Surface = surface;
     Vertex = vertex;
 }
Exemplo n.º 14
0
 public ScaleFigureAction(Surface surface, double factor)
 {
     Surface = surface;
     Factor = factor;
 }