ITrigonometricFunctions<TSelf> 接口

定义

定义对三角函数的支持。

C#
public interface ITrigonometricFunctions<TSelf> : IEquatable<TSelf>, IParsable<TSelf>, ISpanParsable<TSelf>, IUtf8SpanParsable<TSelf>, System.Numerics.IAdditionOperators<TSelf,TSelf,TSelf>, System.Numerics.IAdditiveIdentity<TSelf,TSelf>, System.Numerics.IDecrementOperators<TSelf>, System.Numerics.IDivisionOperators<TSelf,TSelf,TSelf>, System.Numerics.IEqualityOperators<TSelf,TSelf,bool>, System.Numerics.IFloatingPointConstants<TSelf>, System.Numerics.IIncrementOperators<TSelf>, System.Numerics.IMultiplicativeIdentity<TSelf,TSelf>, System.Numerics.IMultiplyOperators<TSelf,TSelf,TSelf>, System.Numerics.INumberBase<TSelf>, System.Numerics.ISubtractionOperators<TSelf,TSelf,TSelf>, System.Numerics.IUnaryNegationOperators<TSelf,TSelf>, System.Numerics.IUnaryPlusOperators<TSelf,TSelf> where TSelf : ITrigonometricFunctions<TSelf>
C#
public interface ITrigonometricFunctions<TSelf> : IEquatable<TSelf>, IParsable<TSelf>, ISpanParsable<TSelf>, System.Numerics.IAdditionOperators<TSelf,TSelf,TSelf>, System.Numerics.IAdditiveIdentity<TSelf,TSelf>, System.Numerics.IDecrementOperators<TSelf>, System.Numerics.IDivisionOperators<TSelf,TSelf,TSelf>, System.Numerics.IEqualityOperators<TSelf,TSelf,bool>, System.Numerics.IFloatingPointConstants<TSelf>, System.Numerics.IIncrementOperators<TSelf>, System.Numerics.IMultiplicativeIdentity<TSelf,TSelf>, System.Numerics.IMultiplyOperators<TSelf,TSelf,TSelf>, System.Numerics.INumberBase<TSelf>, System.Numerics.ISubtractionOperators<TSelf,TSelf,TSelf>, System.Numerics.IUnaryNegationOperators<TSelf,TSelf>, System.Numerics.IUnaryPlusOperators<TSelf,TSelf> where TSelf : ITrigonometricFunctions<TSelf>

类型参数

TSelf

实现此接口的类型。

派生
实现

方法

Acos(TSelf)

计算值的反余弦值。

AcosPi(TSelf)

计算值的反余弦值,并将结果除以 pi

Asin(TSelf)

计算值的反正弦值。

AsinPi(TSelf)

计算值的反正弦值,并将结果除以 pi

Atan(TSelf)

计算值的反正切值。

AtanPi(TSelf)

计算值的反正切值,并将结果除以 pi。

Cos(TSelf)

计算值的余弦值。

CosPi(TSelf)

计算由 pi乘数的值的余弦值。

DegreesToRadians(TSelf)

将给定值从度转换为弧度。

Equals(T)

指示当前对象是否等于同一类型的另一个对象。

(继承自 IEquatable<T>)
RadiansToDegrees(TSelf)

将给定值从弧度转换为度。

Sin(TSelf)

计算值的正弦值。

SinCos(TSelf)

计算值的正弦值和余弦值。

SinCosPi(TSelf)

计算乘以 pi的值的正弦和余弦值。

SinPi(TSelf)

计算乘以 pi的值的正弦值。

Tan(TSelf)

计算值的正切值。

TanPi(TSelf)

计算由 pi乘数的值的正切值。

ToString(String, IFormatProvider)

使用指定格式设置当前实例的值的格式。

(继承自 IFormattable)
TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider)

尝试将当前实例的值格式化为 UTF-8,并将其设置为提供的字节范围。

(继承自 IUtf8SpanFormattable)
TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

尝试将当前实例的值格式化为提供的字符范围。

(继承自 ISpanFormattable)

显式接口实现

IUtf8SpanFormattable.TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider)

尝试将当前实例的值格式化为 UTF-8,并将其设置为提供的字节范围。

(继承自 INumberBase<TSelf>)
IUtf8SpanParsable<TSelf>.Parse(ReadOnlySpan<Byte>, IFormatProvider)

将 UTF-8 字符的范围分析为值。

(继承自 INumberBase<TSelf>)
IUtf8SpanParsable<TSelf>.TryParse(ReadOnlySpan<Byte>, IFormatProvider, TSelf)

尝试将 UTF-8 字符的范围分析为值。

(继承自 INumberBase<TSelf>)

适用于

产品 版本
.NET 7, 8, 9, 10