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