//http://isotopescreencapture.codeplex.com/
//The MIT License (MIT)
namespace Isotope.Math
{
public static class MathUtil
{
///
/// Checks if a value is in a range (inclusive)
///
///
///
///
///
public static bool IsInRange(double val, double min, double max)
{
return ((min <= val) && (val <= max));
}
///
/// Checks if a value is in the range 0.0 to 1.0 inclusive
///
///
///
public static bool IsInRange_0_1(double val)
{
return IsInRange(val, 0.0, 1.0);
}
}
}