A mapping that converts a line segment to an arc

422 Views Asked by At

I'm looking for a mapping $f:\mathbb{R}^2\to\mathbb{R}^2$ that converts a line segment $AA'$ with two end points $A=(x_A,y_A)$ and $A=(x_{A'},y_{A'})$ to an arc $BB'$ with radius $r$ centered at $O$, with end points $B=(x_B,y_B)$ and $B'=(x_{B'},y_{B'})$.

line segment to circular arc

This mapping should map $A$ to $B$ and $A'$ to $B'$. Does anyone know a closed-form relation for such mapping?

I know that mappings such as $w=1/z$ in complex plain can convert lines to circles. But I don't know how to modify this to convert a particular line segment to an arc given the endpoints and radius.

2

There are 2 best solutions below

2
On BEST ANSWER

Treat everything as complex numbers, let $P$ be a point on the line segment $AA'$. The map $$P \mapsto \frac{1}{A'-A}\left( P - \frac{A+A'}{2}\right)$$ sends the line segment $AA'$ to the line segment joining $-\frac12$ to $\frac12$. Multiply $B'-B$ will rotate and scale the line segment to a parallel copy of $BB'$. After another translation, the map

$$P \mapsto P' \stackrel{def}{=} \frac{B+B'}{2} + \frac{B'-B}{A'-A}\left( P - \frac{A+A'}{2}\right)$$ sends line segment $AA'$ to line segment $BB'$.

To send line segment $BB'$ to an arc joining them, you first figure out the mid point $M$ of the circular arc $BB'$ and let $N = 2O - M$ be the antipodal point of $M$ on the circle holding the arc. $$N = O - \frac{2r}{\sqrt{4r^2 - |B-B'|^2}} \left(\frac{B+B'}{2} - O\right)$$

If you perform a circle inversion with respect to $N$ and radius $R = |B - N| = |B'-N|$, the point $P'$ will get mapped to a point $P''$ on the circular arc joining $BB'$.

$$P' \mapsto P'' \stackrel{def}{=} N + \frac{R^2}{\bar{P}' - \bar{N}}$$ Please note that in denominator of above expression, you need to take complex conjugation for $P'$ and $N$.

0
On

CAUTION: I have most parts of the answer, except for the final map at the end. I will update once I figure it out

Let's treat as complex plane.

First, notice that the unit line segment $L=[0,1]$ can be mapped an arc of the unit circle from angle $\theta_1$ to $\theta_2$ where $0 \leq \theta_1 \leq \theta_2 \leq 2\pi$, denoted $S(\theta_1 , \theta_2)$, via the parameterization $f(t ; \theta_1, \theta_2) : L \to S(\theta_1 , \theta_2)$ defined by $$ f(t ; \theta_1, \theta_2) = \exp[ i ( \theta_1 (1-t) + \theta_2 t ) ] .$$

So your arc $BB'$ with radius $r$ centered at the origin is obtained from $\mathbf{L}$ by the map $$ t \mapsto r \cdot f(t ; \theta_1, \theta_2) .$$

All that is left to do is figure out how to map $AA'$ to $L$. Still working on that, should be some kind of rotation, translation, and scaling