Fixed linear interpolation, added function to translate between domains and another function to map a function over a coordinate grid