Finding the distance along a bezier curve from point x to point x was failing with...