Transform the coordinates in place
Merge pull request #3040 from fredj/memory

Transform the coordinates in place