clamp_ (value, min=Number.NEGATIVE_INFINITY, max=Number.POSITIVE_INFINITY) {
    return Math.min(max, Math.max(min, value));
  }
Clamps a value to min/max values.

@param {Number} value - The value to clamp.
@param {Number} min=Number.NEGATIVE_INFINITY - The minimum value. Defaults
    to negative infinity.
@param {Number} max=Number.POSITIVE_INFINITY - The maximum value. Defaults
    to positive infinity.
@private