Look at Kyle's suggestions here:
Probably just need some coordinate transformations to go the other way.