NFloat.CosPi(NFloat) 方法

定义

计算已乘以 pi的值的余弦值。

public:
 static System::Runtime::InteropServices::NFloat CosPi(System::Runtime::InteropServices::NFloat x) = System::Numerics::ITrigonometricFunctions<System::Runtime::InteropServices::NFloat>::CosPi;
public static System.Runtime.InteropServices.NFloat CosPi (System.Runtime.InteropServices.NFloat x);
static member CosPi : System.Runtime.InteropServices.NFloat -> System.Runtime.InteropServices.NFloat
Public Shared Function CosPi (x As NFloat) As NFloat

参数

x
NFloat

值,以半转为单位,其余弦值将被计算。

返回

乘以 的xpi余弦值。

实现

注解

这会计算 cos(x * π)

适用于