distance#

HermiteSpline.distance(point, return_t=False)#

Computes the distance of point from the spline.

Parameters#

pointnumpy.array

Array with the coordinates of the point.

return_tbool

Whether to return the paramter t of the spline. spline.eval(t) gives the location on the spline closest to the point.

Returns#

distancefloat

The distance between the point and the spline.

tfloat

Only returned if return_t=True. This is the parameter corresponding to the location on the spline closest to the point.