approxDist declared inline.. speed improvment by about >1%