sm.vec3.bezier2
Quadratic Bezier interpolation. Three dimensional bezier curve.
Kind: Function
Environments: Game, Terrain
Game
sm.vec3.bezier2( c0, c1, c2, t )
Parameters:
| Name | Type | Description |
|---|---|---|
c0 |
Vec3 | The start point. |
c1 |
Vec3 | The control point. |
c2 |
Vec3 | The end point. |
t |
number | The interpolation step. |
Returns:
| Type | Description |
|---|---|
| Vec3 | The interpolated value between two values. |
Terrain
sm.vec3.bezier2( c0, c1, c2, t )
Open the full Terrain reference
Parameters:
| Name | Type | Description |
|---|---|---|
c0 |
Vec3 | The start point. |
c1 |
Vec3 | The control point. |
c2 |
Vec3 | The end point. |
t |
number | The interpolation step. |
Returns:
| Type | Description |
|---|---|
| Vec3 | The interpolated value between two values. |