Skip to content

smoothstep

Vašek edited this page Feb 16, 2019 · 1 revision

smoothstep

This function will return the y-coordinate from the smoothstep function

Syntax:

smoothstep(a, b, x)
Argument Description
double a The left threshold
double b The right threshold
double x The x-coordinate

Returns: double

Description:

This function makes a smooth transition from 0 to 1 beginning at threshold a and ending at threshold b and returns the y-coordinate of this function on the x-position x.

Example 1:

double value = smoothstep(0, 1, 0.6);

This function will set value to 0,648.

Back to interpolations

Clone this wiki locally