Let $T$ be the toroidal surface in $\mathbb{R}^3$ having in Euclidean coordinates $(x, y, z)$ the equation $(R - \sqrt{x^2 + y^2})^2+ z^2 = r^2$, where $0 < r < R$.
Geometrically $T$ is obtained by rotating around the $z$-axis the "small" circle $K$ in the $xz$-plane having equation $(x -R)^2 + z^2 = r^2$ while the center of the rotating $K$ remains on the "big" circle $C$ in the $xy$-plane having equation $x^2+ y^2 = R^2$.
By parametrizing each of $C$ and $K$ by angular coordinates and passing to quotients modulo $2\pi$ one obtains a homemorphism of $C \times K$ with $T$.
But I want to do this strictly in Cartesian coordinates.
To do so, change the names of the coordinates on $K$ from $(x, y, z)$ to $(u, v, w)$ (where $v = 0$ on $K$). Define a map $h :C \times K \rightarrow \mathbb{R}^3$ by $h\bigl( (x, y, 0), \, (u, 0, w)\bigr) = (u \,x/R, u\, y/R, w)$.
Am I correct that $h$ maps into the toral surface $T$ and, in fact, gives the desired homeomorphism of $C \times K$ with $T$?
Since $h$ is continuous and $C \times K$ is compact, of course $h$ will define the desired homeomorphism once it is known to be injective and maps onto $T$. So that’s what my question amounts to. (The formula just looks too suspiciously simple to me!)
Related: Torus as a cartesian product of two circles and Is it true that cartesian product of any two circle 1 define a torus?