diff --git a/Engine.Core/Math.cs b/Engine.Core/Math.cs index 6ab67bb..07b7c24 100644 --- a/Engine.Core/Math.cs +++ b/Engine.Core/Math.cs @@ -75,7 +75,7 @@ public static class Math /// The minimum value. /// The maximum value. /// The clamped value. - public static T Clamp(this T x, T min, T max) where T : INumber => (x < min) ? min : (x > max) ? max : x; + public static T Clamp(T x, T min, T max) where T : INumber => (x < min) ? min : (x > max) ? max : x; /// /// Returns the smallest integral value that is greater than or equal to the specified number.