diff --git a/ICD.Common.Utils/MathUtils.cs b/ICD.Common.Utils/MathUtils.cs index ea48b0e..23844d5 100644 --- a/ICD.Common.Utils/MathUtils.cs +++ b/ICD.Common.Utils/MathUtils.cs @@ -10,6 +10,18 @@ namespace ICD.Common.Utils /// public static class MathUtils { + /// + /// Clamps the number between the two values. + /// + /// + /// + /// + /// + public static byte Clamp(byte number, byte min, byte max) + { + return (byte)Clamp((double)number, min, max); + } + /// /// Clamps the number between the two values. ///