0

我使用带有动态数据显示 dll 的 microsoft visual 2010 我需要按角度和半径围绕一个点做一个圆。我已经成功了,但这是错误的,我想是的。首先,我的源代码:

我从 mouseClick 得到了 preP(没问题,这点很完美,你可以在图片中看到下一个)

 // 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;

其次,我实际得到的是:在中间,我得到了完全完美的圆,但在南北,圆是椭圆的类型。图片:

http://sizmedia.com/my.php?i=hm2zuv5yyenj.png

我很乐意明白:为什么?好吗?还是我需要改变一些东西?因为我想了想,地球是圆的,它的类型是合理的。

4

0 回答 0