Say i have a straight line, how would you project it on to a circle as an arc length where by the centre normal of the line is fixed to (0,1)*r on the circle?
Basically what i am trying to do in my code is i have a mesh and i want to warp it around a circle, but i don't know the math for it.
Here is an image to visually show it:
I drew it with a mouse so its not great.
How do you figure out the position on the circumference, based from the local distance from the green marker for some circle with known origin and radius.

The point of abscissa $s$ on the line wraps to a point at curvilinear abscissa $s$ from the top point, which is also at an angle $s$ clockwise from that point.
In polar coordinates
$$\theta=\frac\pi2-s,\\\rho=1$$ and in Cartesian
$$x=\sin s,\\y=\cos s.$$