BITKit/Packages/Runtime~/Core/Extensions/Float.cs

14 lines
269 B
C#
Raw Normal View History

2023-06-29 14:57:11 +08:00
using System.Collections.Generic;
2023-06-05 19:57:17 +08:00
using System.Linq;
namespace BITKit
{
public static partial class Extensions
{
public static float GetDifference(this IEnumerable<float> self)
{
return self.Max() - self.Min();
}
}
}