Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

AltStyle によって変換されたページ (->オリジナル) /