AcTools.Utils.MathUtils.Clamp C# (CSharp) Метод

Clamp() публичный статический Метод

public static Clamp ( this v, double min, double max ) : double
v this
min double
max double
Результат double
        public static double Clamp(this double v, double min, double max) => v < min ? min : v > max ? max : v;

Same methods

MathUtils::Clamp ( this v, float min, float max ) : float
MathUtils::Clamp ( this v, int min, int max ) : int