public void translate(Point2D vector){
  translate(vector.getX(),vector.getY());
}

public void translate ( Point2D vector ) { translate ( vector . getX ( ) , vector . getY ( ) ) ; }
translate x and y by given vector .
