Coordinate translation, and unit change to mm.

Untested!