MathF.Asin(Single) 方法

定义

返回正弦值为指定数字的角度。

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

参数

x
Single

一个表示正弦值的数字,其中 x 必须大于或等于 -1 但小于或等于 1。

返回

角度 θ,以弧度为单位,满足 -π/2 ≤ θ ≤ π/2。

- 或 -

如果 x< -1 或 x> 1 或 x 等于 NaN,则为 NaN

注解

正返回值表示从 x 轴逆时针角度;负返回值表示顺时针角度。

将返回值乘以 180/MathF.PI 以从弧度转换为度。

此方法调用基础 C 运行时,不同的操作系统或体系结构之间的确切结果或有效输入范围可能会有所不同。

适用于