sm.util.bezier3
Cubic Bezier interpolation. One dimensional bezier curve.
Kind: Function
Environments: Game, Terrain
Game
sm.util.bezier3( c0, c1, c2, c3, t )
Parameters:
| Name | Type | Description |
|---|---|---|
c0 |
number | The start value. |
c1 |
number | The first control point. |
c2 |
number | The second control point. |
c3 |
number | The end value. |
t |
number | The interpolation step. |
Returns:
| Type | Description |
|---|---|
| number | The interpolated value between two values. |
Terrain
sm.util.bezier3( c0, c1, c2, c3, t )
Open the full Terrain reference
Parameters:
| Name | Type | Description |
|---|---|---|
c0 |
number | The start value. |
c1 |
number | The first control point. |
c2 |
number | The second control point. |
c3 |
number | The end value. |
t |
number | The interpolation step. |
Returns:
| Type | Description |
|---|---|
| number | The interpolated value between two values. |