public static float ClampMin(this float value, float min) { if (value < min) { return min; } return value; }