Math.atan(x) 會回傳 x 的反正切值,結果以弧度表示,範圍通常在 -PI/2 到 PI/2 之間。
Math.atan(1)
若需要完整判斷象限,建議改用 Math.atan2(y, x)。
這個方法常用於角度換算與向量方向分析。