Find nearest point on curve

 From:  noskule
4490.4 
exactly what I was looking for, thanks
nos