move translate to take vec2d as arg
Merge pull request #673 from bpicolo/move_translate_to_vec2d

move translate to take vec2d as arg