sm.vec3.bezier3

Cubic Bezier interpolation. Three dimensional bezier curve.

Kind: Function

Environments: Game, Terrain

Game

sm.vec3.bezier3( c0, c1, c2, c3, t )

Open the full Game reference

Parameters:

Name Type Description
c0 number The start point.
c1 number The first control point.
c2 number The second control point.
c3 number The end point.
t number The interpolation step.

Returns:

Type Description
number The interpolated value between two values.

Terrain

sm.vec3.bezier3( c0, c1, c2, c3, t )

Open the full Terrain reference

Parameters:

Name Type Description
c0 number The start point.
c1 number The first control point.
c2 number The second control point.
c3 number The end point.
t number The interpolation step.

Returns:

Type Description
number The interpolated value between two values.