Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
using System;
namespace IDE.Controls.WPF.Docking;
internal static class MathHelper
{
public static double MinMax(double value, double min, double max)
{
if (min > max)
throw new ArgumentException("min>max");
if (value < min)
return min;
if (value > max)
return max;
return value;
}
public static void AssertIsPositiveOrZero(double value)
{
if (value < 0.0)
throw new ArgumentException("Invalid value, must be a positive number or equal to zero");
}
}
366e28f22This file is pinned to the selected release. Download the original to open it in your design tool.