Question: Plot a path knowing x and y in function of a variable

I need to plot a path with curvilinear coordinates. Knowing the curvature theta and length s of  parts that compose it, I found the equations of x and y as a function of the parameter s that goes from zero to the total length.
I make an example below:

for 0 <s <2,     x = s     and

                     y = 0 (straight line)

 

for 2 <s <2 + Pi,        x = 2 + 2 * sin ((s-2) / 2)      and

                              y = 2 * (1-cos ((s-2) / 2)

Now I want to find the corresponding plot of x (s), y (s) (without showing s as coordinate) but I do not know what commands I can use. Can you suggest me something? Thank you

Please Wait...