1
0
mirror of synced 2024-11-27 21:10:48 +01:00
TaikoSoundEditor/Commons/Extensions/IntExtensions.cs
2023-10-01 19:40:41 +03:00

8 lines
195 B
C#

namespace TaikoSoundEditor.Commons.Extensions
{
internal static class IntExtensions
{
public static int Clamp(this int x, int a, int b) => x <= a ? a : x >= b ? b : x;
}
}