Forgot to finish the get distance function in the spline class.