Are you familier with polar coordinates?
Imagine your equation for the curve. Y=...? in polar coordinates (with x=r cos and y=r sin ) it is expressed in r(distance from origin) and , angle created with oX+. with this it's easy to change to the appropriate angle.
I hope this helps