function clamp(value, min, max) {
	  return Math.max(min, Math.min(max, value));
	}
Clamps a given value.

@private
@param {Number} value - The value to clamp.
@param {Number} min - The lowest possible value.
@param {Number} max - The highest possible value.
@return {Number} The clamped value.