-
-
Notifications
You must be signed in to change notification settings - Fork 18
smoothstep
Vašek edited this page Feb 16, 2019
·
1 revision
This function will return the y-coordinate from the smoothstep function
smoothstep(a, b, x)
Argument | Description |
---|---|
double a |
The left threshold |
double b |
The right threshold |
double x |
The x-coordinate |
Returns: double
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
.
double value = smoothstep(0, 1, 0.6);
This function will set value
to 0,648.
Back to interpolations