Adding a routine to extract the segment endpoint
of a cubic spline.