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