A line segment AB joining the points $A(10,0,0)$ & $B(20,0,0)$ is rotated about the y-axis through an angle of $2\pi$ & simultaneously it rotated through an angle of $\pi$ about its mid point in the plane containing it & the axis of rotation (i.e. y-axis). Find the parametric equation of surface generated if forms of coordinates
$$ X,Y, Z $$
My Try:
for complete rotation about y-axis in X-Z plane & half rotation , I have $$X=r\cos \theta, Z=r\sin\theta $$
where, $10\leq r\leq 20 $, $0\leq \theta\leq 2\pi $
for secondary rotation I get y-coordinate $$Y=\frac{(20-10)}{2}\sin\frac{\theta}{2}=5\sin\frac{\theta}{2}$$ I don't know if I am correct. Please help me solve this problem. Thanks
