I using microsoft visual 2010 with dynamic data display dll I need to do an circle around a point by angle and radius. I have been successful but it's wrong, I think so. First of all, my source code:
I got the prePs from the mouseClick (it's not problem the point is perfect working you can see next in the picture)
// Get the X position of the pointClicked
cx = (double)prePs.X;
// Get the Y position of the pointClicked
cy = double.Parse(this.plotter.Viewport.Transform.DataTransform.ViewportToData(prePs).Y.ToString());
// Get the new X position of the pointClicked by the angel with math calculation
xEndP = (float)(double.Parse(txt_enterRadius.Text.ToString()) * Math.Cos(a * Math.PI / 180F)) + cx;
// Get the new Y position of the pointClicked by the angel with math calculation
yEndP = (float)(double.Parse(txt_enterRadius.Text.ToString()) * Math.Sin(a * Math.PI / 180F)) + cy;
Secondly what I actualy got : At the middle I got exactly perfect circle, but in the north and south the circle is type of ellipse. picture:
http://sizmedia.com/my.php?i=hm2zuv5yyenj.png
I would happy to understand : Why? Is it good? Or I need to change something? Becuase i thought about it and the Earth is circle and its type of reasonable.