Method Min
- Namespace
- Zyl.VectorTraits.Numerics
- Assembly
- VectorTraits.dll
Min(sbyte, sbyte)
Get the smaller of two variables (取得两个变量中较小的一个).
[CLSCompliant(false)]
public static sbyte Min(sbyte val1, sbyte val2)
Parameters
val1sbyteThe first of two variables to compare (要比较的两个变量中的第一个).
val2sbyteThe second of two variables to compare (要比较的两个变量中的第二个).
Returns
- sbyte
Return the smaller of two variables (返回两个变量中较小的一个).
Min(byte, byte)
Get the smaller of two variables (取得两个变量中较小的一个).
public static byte Min(byte val1, byte val2)
Parameters
val1byteThe first of two variables to compare (要比较的两个变量中的第一个).
val2byteThe second of two variables to compare (要比较的两个变量中的第二个).
Returns
- byte
Return the smaller of two variables (返回两个变量中较小的一个).
Min(short, short)
Get the smaller of two variables (取得两个变量中较小的一个).
public static short Min(short val1, short val2)
Parameters
val1shortThe first of two variables to compare (要比较的两个变量中的第一个).
val2shortThe second of two variables to compare (要比较的两个变量中的第二个).
Returns
- short
Return the smaller of two variables (返回两个变量中较小的一个).
Min(ushort, ushort)
Get the smaller of two variables (取得两个变量中较小的一个).
[CLSCompliant(false)]
public static ushort Min(ushort val1, ushort val2)
Parameters
val1ushortThe first of two variables to compare (要比较的两个变量中的第一个).
val2ushortThe second of two variables to compare (要比较的两个变量中的第二个).
Returns
- ushort
Return the smaller of two variables (返回两个变量中较小的一个).
Min(int, int)
Get the smaller of two variables (取得两个变量中较小的一个).
public static int Min(int val1, int val2)
Parameters
val1intThe first of two variables to compare (要比较的两个变量中的第一个).
val2intThe second of two variables to compare (要比较的两个变量中的第二个).
Returns
- int
Return the smaller of two variables (返回两个变量中较小的一个).
Min(uint, uint)
Get the smaller of two variables (取得两个变量中较小的一个).
[CLSCompliant(false)]
public static uint Min(uint val1, uint val2)
Parameters
val1uintThe first of two variables to compare (要比较的两个变量中的第一个).
val2uintThe second of two variables to compare (要比较的两个变量中的第二个).
Returns
- uint
Return the smaller of two variables (返回两个变量中较小的一个).
Min(long, long)
Get the smaller of two variables (取得两个变量中较小的一个).
public static long Min(long val1, long val2)
Parameters
val1longThe first of two variables to compare (要比较的两个变量中的第一个).
val2longThe second of two variables to compare (要比较的两个变量中的第二个).
Returns
- long
Return the smaller of two variables (返回两个变量中较小的一个).
Min(ulong, ulong)
Get the smaller of two variables (取得两个变量中较小的一个).
[CLSCompliant(false)]
public static ulong Min(ulong val1, ulong val2)
Parameters
val1ulongThe first of two variables to compare (要比较的两个变量中的第一个).
val2ulongThe second of two variables to compare (要比较的两个变量中的第二个).
Returns
- ulong
Return the smaller of two variables (返回两个变量中较小的一个).
Min(ExInt128, ExInt128)
Get the smaller of two variables (取得两个变量中较小的一个).
public static ExInt128 Min(ExInt128 val1, ExInt128 val2)
Parameters
val1ExInt128The first of two variables to compare (要比较的两个变量中的第一个).
val2ExInt128The second of two variables to compare (要比较的两个变量中的第二个).
Returns
- ExInt128
Return the smaller of two variables (返回两个变量中较小的一个).
Min(ExUInt128, ExUInt128)
Get the smaller of two variables (取得两个变量中较小的一个).
[CLSCompliant(false)]
public static ExUInt128 Min(ExUInt128 val1, ExUInt128 val2)
Parameters
val1ExUInt128The first of two variables to compare (要比较的两个变量中的第一个).
val2ExUInt128The second of two variables to compare (要比较的两个变量中的第二个).
Returns
- ExUInt128
Return the smaller of two variables (返回两个变量中较小的一个).
Min(Int128, Int128)
Get the smaller of two variables (取得两个变量中较小的一个).
public static Int128 Min(Int128 val1, Int128 val2)
Parameters
val1Int128The first of two variables to compare (要比较的两个变量中的第一个).
val2Int128The second of two variables to compare (要比较的两个变量中的第二个).
Returns
- Int128
Return the smaller of two variables (返回两个变量中较小的一个).
Min(UInt128, UInt128)
Get the smaller of two variables (取得两个变量中较小的一个).
[CLSCompliant(false)]
public static UInt128 Min(UInt128 val1, UInt128 val2)
Parameters
val1UInt128The first of two variables to compare (要比较的两个变量中的第一个).
val2UInt128The second of two variables to compare (要比较的两个变量中的第二个).
Returns
- UInt128
Return the smaller of two variables (返回两个变量中较小的一个).
Min(nint, nint)
Get the smaller of two variables (取得两个变量中较小的一个).
public static nint Min(nint val1, nint val2)
Parameters
val1nintThe first of two variables to compare (要比较的两个变量中的第一个).
val2nintThe second of two variables to compare (要比较的两个变量中的第二个).
Returns
- nint
Return the smaller of two variables (返回两个变量中较小的一个).
Min(nuint, nuint)
Get the smaller of two variables (取得两个变量中较小的一个).
[CLSCompliant(false)]
public static nuint Min(nuint val1, nuint val2)
Parameters
val1nuintThe first of two variables to compare (要比较的两个变量中的第一个).
val2nuintThe second of two variables to compare (要比较的两个变量中的第二个).
Returns
- nuint
Return the smaller of two variables (返回两个变量中较小的一个).
Min(float, float)
Get the smaller of two variables (取得两个变量中较小的一个).
public static float Min(float val1, float val2)
Parameters
val1floatThe first of two variables to compare (要比较的两个变量中的第一个).
val2floatThe second of two variables to compare (要比较的两个变量中的第二个).
Returns
- float
Return the smaller of two variables (返回两个变量中较小的一个).
Min(double, double)
Get the smaller of two variables (取得两个变量中较小的一个).
public static double Min(double val1, double val2)
Parameters
val1doubleThe first of two variables to compare (要比较的两个变量中的第一个).
val2doubleThe second of two variables to compare (要比较的两个变量中的第二个).
Returns
- double
Return the smaller of two variables (返回两个变量中较小的一个).
Min(Half, Half)
Get the smaller of two variables (取得两个变量中较小的一个).
public static Half Min(Half val1, Half val2)
Parameters
val1HalfThe first of two variables to compare (要比较的两个变量中的第一个).
val2HalfThe second of two variables to compare (要比较的两个变量中的第二个).
Returns
- Half
Return the smaller of two variables (返回两个变量中较小的一个).