DRAFT under construction
TODO The formalism should be rewritten to use angular distances. In the implementation, the primary unit is pixels in the source plane. However, is a function of in the lens plane, still measured by the same linear unit. It would be convenient if we could avoid the scaling and still get consistent nomenclature.


The observed lensing is decomposed into two steps, as shown the figure. The first step is a translation (deflection), corresponding to the difference between actual () and apparent () source-plane position. In the roulette formalism, this translational part of the lensing is given as $$
$(\alpha^0_1,\beta^0_1)$ is a vector of roulette amplitudes, as defined above.
The second step is the actual, non-linear distortion. The distorted image is drawn in a local co-ordinate system in the lens plane, centred at , which corresponds to in the source plane. We write for the distance between the distorted image and the lens in the lens plane. Since and lie on the same line through the viewpoint (cf. figure), we have
Following Clarkson, we use polar co-ordinates for the distorted image. The source image is described in Cartesian co-ordinates centered at in the source plane. Thus the light observed at a position (pixel) is drawn from a different position (pixel) in the source image. From~Eq.~48 in \citet{Clarkson_2016_II} it is possible to show that the mapping is given as $$ \begin{aligned} \frac{D_{\mathrm{L}}}{D_{\mathrm{S}}}\cdot
r\cdot\begin{bmatrix} \cos\phi \\ \sin\phi \end{bmatrix} + \sum_{m=1}^{\infty} \frac{r^m}{m!\cdot D_{\mathrm{L}}^{m-1}} \cdot\sum_{s=0}^{m+1} c_{m+s} \left(\alpha_s^m \boldsymbol{A}_{s} + \beta_s^m \boldsymbol{B}_{s} \right) \begin{bmatrix} C^+ \\ C^- \end{bmatrix} \\\\ C^\pm &= \pm \frac{s}{m+1},\\\\ c_{m+s} &= \frac{1 - (-1)^{m+s}}{4} = \begin{cases} 0, \quad m+s \text{ is even},\\\\ \frac12, \quad m+s \text{ is odd}, \end{cases} \\\\ \boldsymbol{A}_{s} &= \begin{bmatrix} \cos{(s-1)\phi} & \cos{(s+1)\phi} \\\\ -\sin{(s-1)\phi} & \sin{(s+1)\phi} \end{bmatrix}, \\\\ \boldsymbol{B}_{s} &= \begin{bmatrix} \sin{(s-1)\phi} & \sin{(s+1)\phi} \\\\ \cos{(s-1)\phi} & -\cos{(s+1)\phi} \end{bmatrix}. \end{aligned} $\alpha_m^s\beta_m^s\psi(\xi_1,\xi_2)$, from which one may derive the physical properties of the lens.
In practice the sum has to be truncated by limiting for some .
The roulette amplitudes are always calculated in a specific Reference Point.