How to get spline offset by spline point index ?