What’s highly unscientific is giving this person an algorithm for missile guidance when all they wanted was to search along a spline.
Now that we know the spline has many points, maybe it’s worth looking into.
Reading the distance in world space copes with any shaped spline.