Hi guys,
I've got a lineshape with multiple vertices. I can get a point on the line using the GetPointOnALine(StartingPoint startingPoint, float percentageOfLine) function of LineShape. Now I need to find out the two adjacent vertices of the point so that I can calculate the angle of that line segment and draw an arrowhead marker facing that angle. At the moment, I'm looping through all the line segments between the vertices and checking if the point intersects with line segment. If it does, then the two end point vertices of the line segment are the vertices I want. But this process does seem redundant. Is there a quick built-in function to do this?
Thanks,
Nirish