private static void setMinorMax(float value, ref float min, ref float max) { if (value > max) max = value; if (value < min) min = value; }