hermite

Returns values along a hermite curve. You can use the hermite function, for instance, to move an object smoothly along a curve.

vector hermite(vector start, vector end, vector tan1, vector tan2, float parameter)

float hermite(float start, float end, float tan1, float tan2, float parameter)

start is the start point of the curve.

end is the end point of the curve.

tan1 is the tangent vector that guides the direction and shape of the curve as it leaves the start point of the curve. The vector’s position starts at the start point of the curve.

tan2 is the tangent vector that guides the direction and shape of the curve as it approaches the end point of the curve. The vector’s position starts at the end point of the curve.

parameter is an floating point value between 0 and 1, for example, the value returned by a linstep function.

In the second format, the arguments and return values work in a single dimension.