rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
13 lines • 370 B
TypeScript
/**
* @public
* Bound a value in to a range.
*
* @returns The `value` if it lies between `min` and `max`, otherwise `min` if smaller and `max` if greater.
*
* @remarks
* NaN input will cause a debug error.
*
* See {@link mathBound}.
*/
export declare function mathBound(value: number, min: number, max: number): number;
//# sourceMappingURL=math-bound.d.ts.map