Added getClosest() method to Axis