**Alert: just a long comment with the purpose of giving a visual insight**
* * *
According to the post itself and what @conditionalMethod has already stated, let $r_O:\Bbb R^2\to\Bbb R^2$ be our rotation for $90^\circ$ around the origin $O(0,0)$, then: $\color{brown}{r_O:(x,f(x))\mapsto (-f(x),x))}$.
Here is a concrete example of such a function:
$$f(x)=\begin{cases}x+1,&x\in(-2,-1)\\\\-x+1,&x\in(-1,0)\\\\-x-1,&x\in(0,1)\\\x+1,&x\in(1,2)\end{cases}$$ so, e.g. $$S=(-2,2)\setminus\\{-1,0,1\\}$$ I also high-lighted a squre with edges of length $a=\sqrt{2}$ which I found interesting. $\Gamma_f$ is black in the picture: \\\y=\sin\left(\alpha+k\frac\pi2\right)\end{cases},\quad\alpha\in\left(\arctan a,\frac\pi2\right),k\in\\{1,2,3,4\\},$$
whose graph consists of the four red arcs on the unit circle:
![enter image description here](