Suppose that I have a closed boundary that is represented by nn points. Using these nn points I construct a polygon with nn sides. I have a point P(x,y)P(x,y) that islays inside the polygon.
I want to draw the normal from Point PP to the edge/edges of polygon. Depending on the shape of the polygon, I can have multiple edges to which I can draw normalnormals from point PP. How shall I select the subset of edges (from all edges of polygon) that can be chosen to draw normal from point P.P?