Beispiel #1
0
 public IDiagram MovedBy(int x, int y)
 {
     return(new Triangle(Pos0.MovedBy(x, y), Pos1.MovedBy(x, y), Pos2.MovedBy(x, y)));
 }
Beispiel #2
0
 public void MoveBy(int x, int y)
 {
     Pos0 = Pos0.MovedBy(x, y);
     Pos1 = Pos1.MovedBy(x, y);
     Pos2 = Pos2.MovedBy(x, y);
 }