UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

11 lines 474 B
/** * Adapted from OpenGL spec * smoothstep performs smooth Hermite interpolation between 0 and 1 when edge0 < x < edge1. This is useful in cases where a threshold function with a smooth transition is desired. * @see https://en.wikipedia.org/wiki/Smoothstep * @param {number} edge0 * @param {number} edge1 * @param {number} x * @returns {number} */ export function smoothStep(edge0: number, edge1: number, x: number): number; //# sourceMappingURL=smoothStep.d.ts.map