Shouldn't the parametric equations be;
xt = sqrt(r)*cos(t*360) and
yt = sqrt(r)*sin(t*360) ?
Suppose the reversal of sin & cos doesn't really matter for a circle, as long as it's consistant with your co-ordinate system but shouldn't the r be square-rooted to match the r in DiaaHamdy's...