'use strict';

var math = require('./math.js');

function within(min, value, max) {
  return math.max(min, math.min(value, max));
}
function withinMaxClamp(min, value, max) {
  var v = within(min, value, max);
  return v > max ? max : v;
}

exports.within = within;
exports.withinMaxClamp = withinMaxClamp;
//# sourceMappingURL=within.js.map
