I just wondering what the implicit equation would be if an ellipse with major axis a and minor axis b, rotating about the Z axis with a distance of $R_0$. The $R_0$>a and $R_0$>b which means the rotation will result in a non-degenerate torus. My aim is to determine if some points are inside the toroidal surface. The surface is shown in the image found online.