*Position: accept doubles in getDistance()