fix: Math Method Mistakenly Declared as an Extension

This commit is contained in:
Syntriax 2024-11-02 13:53:58 +03:00
parent 8eb34a0a6d
commit eb445604e8
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ public static class Math
/// <param name="min">The minimum value.</param>
/// <param name="max">The maximum value.</param>
/// <returns>The clamped value.</returns>
public static T Clamp<T>(this T x, T min, T max) where T : INumber<T> => (x < min) ? min : (x > max) ? max : x;
public static T Clamp<T>(T x, T min, T max) where T : INumber<T> => (x < min) ? min : (x > max) ? max : x;
/// <summary>
/// Returns the smallest integral value that is greater than or equal to the specified number.