閱讀英文版本

分享方式:


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