I have a 2D Curve. I have all the numerical values for the line within a certain range. I do not have an equation for this line.
At several points in this 2D space I want to calculate the shortest distance from a point, P, to this non-linear line for which I have the values.
How can I do this? Any suggestion will be very much appreciated.
Sketch attached.
If your line is short enough (less than $10^6$ points), you really can just do this by brute force: calculate the distance from $\vec{p}$ to each point in your discretized line, and take the minimum of these distances. This shouldn't be hard even on a basic desktop.
Since you only have a discrete collection of points, this really is as good as you can do. Anything fancier would have to assume something more about your curve.