Class Scalars<T>
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
Constants of scalar (标量的常数).
public static class Scalars<T> where T : struct
Type Parameters
T
Target type (目标类型).
- Inheritance
-
Scalars<T>
- Inherited Members
Fields
- AllBitsSet
All bit is 1 (所有位都是1的值).
- BitSize
Bit size (位大小).
- BitSizeMask
Bit size mask (位大小掩码).
- ByteSize
byte size (字节大小).
- E
Represents the natural logarithmic base, specified by the constant, e (表示自然对数的底,它由常数 e 指定). When the type is an integer, it is a fixed point number using the FixedShift convention (当类型为整数时, 是使用 FixedShift 约定的定点数).
- Epsilon
Represents the smallest positive value that is greater than zero (表示大于零的最小正值). When the type is an integer, the value is 1 (当类型为整数时,该值为1).
- ExponentBias
Exponent bias (指数偏移值). When the type is an integer, the value is 0.
- ExponentBits
Exponent bit size (指数位数). When the type is an integer, the value is 0.
- ExponentMask
Exponent mask (指数掩码).
- ExponentShift
Exponent shift bit (指数位移).
- FixedOne
The fixed point number of the value 1 (值1的定点数). When the type is an integer, the value is'Pow(2, FixedShift)'; Otherwise it's 1 (当类型为整数时,它的值为
Pow(2, <xref href="Zyl.VectorTraits.Scalars%601.FixedShift" data-throw-if-not-resolved="false"></xref>)
; 其他情况下为 1).
- FixedOneDouble
The double of the fixed point number with the value 1 (值1的定点数的双精度浮点值). When the type is an integer, the value is'Pow(2, FixedShift)'; Otherwise it's 1 (当类型为整数时,它的值为
Pow(2, <xref href="Zyl.VectorTraits.Scalars%601.FixedShift" data-throw-if-not-resolved="false"></xref>)
; 其他情况下为 1).
- FixedShift
Binary shift of fixed point number (定点数的位移). When the type is an integer, the value is' BitSize/2 '; Otherwise it's 0 (当类型为整数时,它的值为
<xref href="Zyl.VectorTraits.Scalars%601.BitSize" data-throw-if-not-resolved="false"></xref>/2
; 其他情况下为 0).
- MantissaBits
Mantissa bit size (尾数位数).
- MantissaMask
Mantissa mask (尾数掩码).
- MantissaShift
Mantissa shift bit (尾数位移).
- MaskBits1
1 bits mask (1位掩码).
- MaskBits16
16 bits mask (16位掩码).
- MaskBits2
2 bits mask (2位掩码).
- MaskBits32
32 bits mask (32位掩码).
- MaskBits4
4 bits mask (4位掩码).
- MaskBits8
8 bits mask (8位掩码).
- MaxValue
Represents the largest possible value (表示最大可能值).
- MinValue
Represents the smallest possible value (表示最小可能值).
- NaN
Represents not a number (NaN) (表示“非数(NaN)”的值). When the type is an integer, the value is 0 (当类型为整数时,该值为0).
- NegativeInfinity
Represents negative infinity (表示负无穷). When the type is an integer, the value is 0 (当类型为整数时,该值为0).
- NegativeZero
Represents the number negative zero (-0) (表示“负零(-0)”的值). When the type is an integer, the value is 0 (当类型为整数时,该值为0).
- NonExponentMask
Non-exponent mask (非指数掩码).
- NonMantissaMask
Non-mantissa mask (非尾数掩码).
- NonSignMask
Non-sign mask (非符号掩码).
- NormOne
Normalized number of value 1 (值1的归一化数). When the type is an integer, the value is'MaxValue'; Otherwise it's 1 (当类型为整数时,它的值为
<xref href="Zyl.VectorTraits.Scalars%601.MaxValue" data-throw-if-not-resolved="false"></xref>
; 其他情况下为 1).
- Pi
Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π (表示圆的周长与其直径的比值,由常数 π 指定). When the type is an integer, it is a fixed point number using the FixedShift convention (当类型为整数时, 是使用 FixedShift 约定的定点数).
- PositiveInfinity
Represents positive infinity (表示正无穷). When the type is an integer, the value is 0 (当类型为整数时,该值为0).
- SignBits
Sign bit size (符号位数). When the type is an unsigned number, the value is 0.
- SignMask
Sign mask (符号掩码).
- SignShift
Sign shift bit (符号位移).
- Tau
Represents the number of radians in one turn, specified by the constant, τ (表示转一圈的弧度数,由常量 τ 指定). When the type is an integer, it is a fixed point number using the FixedShift convention (当类型为整数时, 是使用 FixedShift 约定的定点数).
- V0
Value 0 (0的值).
- V1
Value 1 .
- V2
Value 2 .
- V3
Value 3 .
- V4
Value 4 .
- V5
Value 5 .
- V6
Value 6 .
- V7
Value 7 .
- V8
Value 8 .
- VMaxByte
Value 255 (byte.MaxValue).
- VMaxInt16
Value 32767 (short.MaxValue) .
- VMaxInt32
Value 2147483647 (int.MaxValue) .
- VMaxSByte
Value 127 (sbyte.MaxValue).
- VMaxUInt16
Value 65535 (ushort.MaxValue) .
- VMaxUInt32
Value 4294967295 (uint.MaxValue) .
- VMinInt16
Value -32768 (short.MinValue) .
- VMinInt32
Value -2147483648 (int.MinValue) .
- VMinSByte
Value -128 (sbyte.MinValue).
- VReciprocalMaxByte
Reciprocal value: 1/255 (byte.MaxValue). When the type is an integer, it is a fixed point number using the FixedShift convention (当类型为整数时, 是使用 FixedShift 约定的定点数).
- VReciprocalMaxInt16
Reciprocal value: 1/32767 (short.MaxValue). When the type is an integer, it is a fixed point number using the FixedShift convention (当类型为整数时, 是使用 FixedShift 约定的定点数).
- VReciprocalMaxInt32
Reciprocal value: 1/2147483647 (int.MaxValue). When the type is an integer, it is a fixed point number using the FixedShift convention (当类型为整数时, 是使用 FixedShift 约定的定点数).
- VReciprocalMaxSByte
Reciprocal value: 1/127 (sbyte.MaxValue). When the type is an integer, it is a fixed point number using the FixedShift convention (当类型为整数时, 是使用 FixedShift 约定的定点数).
- VReciprocalMaxUInt16
Reciprocal value: 1/65535 (ushort.MaxValue). When the type is an integer, it is a fixed point number using the FixedShift convention (当类型为整数时, 是使用 FixedShift 约定的定点数).
- VReciprocalMaxUInt32
Reciprocal value: 1/4294967295 (uint.MaxValue). When the type is an integer, it is a fixed point number using the FixedShift convention (当类型为整数时, 是使用 FixedShift 约定的定点数).
- V_1
Value -1 . When the type is unsigned integer, the value is a signed cast value (当类型为无符号整型时,值为有符号强制转换值). Example: '(byte)(-1)=255' .
- V_2
Value -2 .
- V_3
Value -3 .
- V_4
Value -4 .
- V_5
Value -5 .
- V_6
Value -6 .
- V_7
Value -7 .
- V_8
Value -8 .