? Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
返回由 X 軸到 (y,x) 點的角度(以弧度為單位)。
Math.atan2(y, x)
x
必選項。 描述笛卡兒 x 坐標的數值表達式。
y
必選項。 描述笛卡兒 y 坐標的數值表達式。
返回值在 -pi 和 pi 之間,表示提供的 (y,x) 點的角度。
版本 1
atan 方法 | tan 方法
應用于: Math 對象