@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
14 lines • 400 B
TypeScript
/**
* Clamps a value to 0..1 range
* Same as `clamp(value, 0, 1)`
* Works the same as `saturate` function in GLSL
* @param {number} value
* @returns {number}
*/
export function clamp01(value: number): number;
/**
* Shortcut following GLSL naming, see {@link clamp01}
* @type {function(number): number}
*/
export const saturate: (arg0: number) => number;
//# sourceMappingURL=clamp01.d.ts.map