Cache trig calculations
Pull out Mercator stuff into a reusable function