public static double ReMapClamped( double value, double inMin, double inMax, double outMin, double outMax, bool clampIn = true, bool clampOut = true ) { return (MathE.Clamp( ReMap( MathE.Clamp( value, clampIn ? inMin : double.NegativeInfinity, clampIn ? inMax : double.PositiveInfinity ), inMin, inMax, outMin, outMax ), clampOut ? outMin : double.NegativeInfinity, clampOut ? outMax : double.PositiveInfinity )); }
public static float ReMapClamped( float value, float inMin, float inMax, float outMin, float outMax, bool clampIn = true, bool clampOut = true ) { return (MathE.Clamp( ReMap( MathE.Clamp( value, clampIn ? inMin : float.NegativeInfinity, clampIn ? inMax : float.PositiveInfinity ), inMin, inMax, outMin, outMax ), clampOut ? outMin : float.NegativeInfinity, clampOut ? outMax : float.PositiveInfinity )); }