Some functions to convert screen -> world coordinates.