A function that remaps the [0,1] interval into the [0,1] interval.
The corners are mapped to 0 and the center to 1.
Reference: {@link https://iquilezles.org/articles/functions/}.
| Parameter | Type | Default Value |
|---|---|---|
| x | Node<float> | — |
| k | Node<float> | — |
Returns
Node<float>A function that remaps the [0,1] interval into the [0,1] interval.
Expands the sides and compresses the center, and keeps 0.5 mapped to 0.5.
Reference: {@link https://iquilezles.org/articles/functions/}.
| Parameter | Type | Default Value |
|---|---|---|
| x | Node<float> | — |
| k | Node<float> | — |
Returns
Node<float>A function that remaps the [0,1] interval into the [0,1] interval.
A generalization of the parabola(). Keeps the corners mapped to 0 but allows the control of the shape one either side of the curve.
Reference: {@link https://iquilezles.org/articles/functions/}.
| Parameter | Type | Default Value |
|---|---|---|
| x | Node<float> | — |
| a | Node<float> | — |
| b | Node<float> | — |
Returns
Node<float>A phase shifted sinus curve that starts at zero and ends at zero, with bouncing behavior. Reference: {@link https://iquilezles.org/articles/functions/}.
| Parameter | Type | Default Value |
|---|---|---|
| x | Node<float> | — |
| k | Node<float> | — |
Returns
Node<float>