Distance from spline

Hi all,
given a TSpline I would like to obtain the distance from a given (x,y) point in the plane and the spline itself :

do you have any idea/suggestion/reference?

thanks!
Luigi

Hi,

TSpline::DistanceToPrimitive() gives an approximation by using the histogram associated with it. The histogram is a piecewise constant approximation; the length of the pieces is defined by SetNpx().

Cheers, Axel.