Given the points of the start (a) and end (b) of a line segment, and c, a separate point in the same 2D plane, how do I get the distance of point c along the axis of the line segment?
Using my high-quality renders below as an example, if I rotate the following 2d coordinate space...
...so that the rotation of the line segment becomes 0 degrees:
I can say that point c is 95% along the axis represented by the line segment.
How can I calculate the distance of point c along the axis represented by a line segment (if I'm phrasing that correctly!)