@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
23 lines (22 loc) • 698 B
TypeScript
/**
* Returns a value between 0-1 that represents the percentage that x has moved between min and max, but smoothed or slowed down the closer X is to the min and max. see [https://en.wikipedia.org/wiki/Smoothstep](https://en.wikipedia.org/wiki/Smoothstep) for details.
*
* @remarks
* It takes 3 arguments.
*
* `smoothstep(x, min, max)`
*
* - `x` - value to remap
* - `min` - range min
* - `max` - range max
*
* ## Usage
*
* - `smoothstep(2,3,2.5)` - returns 0.5
*
*/
import { BaseMethod } from './_Base';
export declare class SmootherstepExpression extends BaseMethod {
static requiredArguments(): (string[] | undefined)[];
processArguments(args: any[]): Promise<number>;
}