Let $X = [0,1] \times [0,1]$, and let consider the quotient topology $X^* := X / ((x,0) \sim (x,1), (0,y) \sim (1,y))$. Given $r_0 > h > 0$, we define explicitly the torus as: $$ Y_{h,r_0} = \left\{(x,y,z) : z^2 = h^2 - \left(r_0 - \sqrt{x^2 + y^2}\right)^2\right\} $$ I want to construct an explicit homeomorphism $f : X^* \to Y_{h,r_0}$.
I believe I've managed to come up with the homeomorphism. We express points in $Y_{h,r_0}$ in terms of cylindrical coordinates, and define $f$ as follows: $$ f(x,y) = (r_0 - h\cos(2\pi y), 2\pi x, h\sin(2\pi y)) $$ One can check that this is well-defined up to quotient topology, and is clearly continuous as it is continuous coordinate-wise. I've also constructed the inverse map $g : Y_{h,r_0} \to X^*$: $$ g(r,\theta,z) = \left(\frac{\theta}{2\pi}, \frac{1}{2\pi}\arg(r_0 - r + iz)\right) $$ One can also check that this well defined up to quotient topology, and it is both the left and the right inverse of $f$. However, I'm struggling to prove that it is continuous (I'm not entirely sure if it's even continuous). I believe the second argument is indeed continuous, but it seems complicated. I'm also not sure if it's possible to define $g$ differently such that no complex numbers are involved, and the function will still not be too complicated.
Any help is appreciated.