MathF.Atan(Single) 方法

定义

返回正切值为指定数字的角度。Returns the angle whose tangent is the specified number.

public:
 static float Atan(float x);
public static float Atan (float x);
static member Atan : single -> single
Public Shared Function Atan (x As Single) As Single

参数

x
Single

表示正切值的数字。A number representing a tangent.

返回

角度 θ,以弧度为单位,满足 -π/2 ≤ θ ≤ π/2。An angle, θ, measured in radians, such that -π/2 ≤ θ ≤ π/2.

-or- 如果 x 等于 NaN,则为 NaN;如果 x 等于 NegativeInfinity,则 -π/2 舍入为双精度值 (-1.5707963267949);或者如果 x 等于 PositiveInfinity,则 π/2 舍入为双精度值 (1.5707963267949)。NaN if x equals NaN, -π/2 rounded to double precision (-1.5707963267949) if x equals NegativeInfinity, or π/2 rounded to double precision (1.5707963267949) if x equals PositiveInfinity.

注解

正返回值表示从 x 轴开始的逆时针角度;负值返回值表示顺时针角度。A positive return value represents a counterclockwise angle from the x-axis; a negative return value represents a clockwise angle.

将返回值乘以 180/MathF.PI , 以将弧度转换为度。Multiply the return value by 180/MathF.PI to convert from radians to degrees.

适用于