Coordinate conversion routines

These functions are really handy for converting coordinates up and down
the object tree. Without them, users will have to figure out local and
global coordinates by themselves, often not incorporating rotation.