ts-useful
Version:
Functions for animation, color transitions, ecliptic, bezier, decasteljau, curves, three dimensional curves, smooth scrolling, random range, randomItem, mobius index, vectors, physics vectors, and easing.
13 lines • 336 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Clamp = void 0;
/**
*
* @param value number
* @param min number
* @param max number
* @returns number
*/
const Clamp = (value, min, max) => Math.min(Math.max(min, value), max);
exports.Clamp = Clamp;
//# sourceMappingURL=clamp.js.map