Changed constHeight and constWidth to mapHeight and mapWidth and added functions for conversion between relative and absolute orientation.