MathF.Tan(Single) 方法

定义

返回指定角度的正切值。Returns the tangent of the specified angle.

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

参数

x
Single

以弧度计量的角度。An angle, measured in radians.

返回

x 的正切值。The tangent of x. 如果 x 等于 NaNNegativeInfinityPositiveInfinity,此方法将返回 NaNIf x is equal to NaN, NegativeInfinity, or PositiveInfinity, this method returns NaN.

注解

角度 ( x) 必须为弧度。The angle, x, must be in radians. MathF.PI乘以/180 将度转换为弧度。Multiply by MathF.PI/180 to convert degrees to radians.

适用于