1
0
mirror of synced 2024-11-24 04:20:10 +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;
}
}