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