0
我建立y中的以下內容:極地表示,在Java
public class Point2
{
private double _radius , _alpha;
public Point2 (int x , int y)
{
_radius = Math.sqrt (Math.pow(x,2) + Math.pow (y,2)) ;
_alpha = Math.atan(y/x) ;
}
}
是堅持我的唯一的事情就是_alpha計算。 我在想如何操作這個使用Math類最短的和可讀的方式... 我的方式行嗎? 日Thnx
atan2是什麼? – 2011-04-23 10:52:37
已添加鏈接。 – YXD 2011-04-23 10:53:53