1
0
mirror of synced 2024-12-20 11:25:55 +01:00
OpenTaiko/FDK19/コード/00.共通/ExtensionMethods/DoubleExtensions.cs
2021-09-21 00:16:38 +02:00

12 lines
259 B
C#

using System;
namespace FDK.ExtensionMethods
{
public static class DoubleExtensions
{
public static double Clamp(this double value, double min, double max)
{
return Math.Min(Math.Max(value, min), max);
}
}
}