From eb445604e84c9bc745f9a16166c3c3d69e931c52 Mon Sep 17 00:00:00 2001 From: Syntriax Date: Sat, 2 Nov 2024 13:53:58 +0300 Subject: [PATCH] fix: Math Method Mistakenly Declared as an Extension --- Engine.Core/Math.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.