public static double doubleClamp(double value, double min, double max) {
		if (value > max)
			return max;
		if (value < min)
			return min;
		return value;
	}
@param value
		Base value.
@param min
		Clamp min.
@param max
		Clamp max.

@return Value, or min if value below min, or max if value above max.
recaf-core/src/main/java/software/coley/recaf/util/NumberUtil.java