I found the following formula for the Fourier transform on a flat 2-torus, but I don't quite know how to derive it. We have a variable $q=(q_x,q_y) \in [0,2\pi)^2$ and by considering it in polar coordinates we can also define the polar angle $\arg(q).$ The formula then claims:
$$\int_{[0,2\pi)^2} \frac{d^2q}{(2\pi)^2} e^{i(q \cdot r - m\arg(q))} = \frac{i^{|m|} |m| e^{-i m \arg(r)}}{2\pi |r|^2}.$$
Does anybody know how to derive it?