This commit is contained in:
@@ -4,6 +4,13 @@ namespace SJK.Math;
|
|||||||
|
|
||||||
public static class SJKMath
|
public static class SJKMath
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the max number in a array of values.
|
||||||
|
/// </summary>
|
||||||
|
/// <typeparam name="T"></typeparam>
|
||||||
|
/// <param name="values"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
/// <exception cref="ArgumentException"></exception>
|
||||||
public static T Max<T>(params T[] values) where T : INumber<T>
|
public static T Max<T>(params T[] values) where T : INumber<T>
|
||||||
{
|
{
|
||||||
if (values.Length == 0)
|
if (values.Length == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user