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

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

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

Same methods

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