1
0
mirror of synced 2024-11-30 14:14:29 +01:00
TaikoSoundEditor/Extensions/IntExtensions.cs

8 lines
187 B
C#
Raw Normal View History

2023-07-28 21:28:05 +02:00
namespace TaikoSoundEditor.Extensions
{
internal static class IntExtensions
{
public static int Clamp(this int x, int a, int b) => x <= a ? a : x >= b ? b : x;
}
}