static double clampDouble(double min, double max, double input) => input < min ? min : input > max ? max : input;