gl3n.interpolate

gl3n.interpolate

Members

Aliases

interp_linear
alias interp_linear = interp
Undocumented in source.
lerp
alias lerp = interp
Undocumented in source.
mix
alias mix = interp
Undocumented in source.
slerp
alias slerp = interp_spherical
Undocumented in source.

Functions

catmullrom_derivative
T catmullrom_derivative(T p0, T p1, T p2, T p3, float t)

Catmull-derivatives of the interpolation between four points.

interp
T interp(T a, T b, float t)

Interpolates linear between two points, also known as lerp.

interp_catmullrom
T interp_catmullrom(T p0, T p1, T p2, T p3, float t)

Catmull-rom interpolation between four points.

interp_hermite
T interp_hermite(T x, T tx, T y, T ty, float t)

Hermite interpolation (cubic hermite spline).

interp_nearest
T interp_nearest(T x, T y, float t)

Nearest interpolation of two points.

interp_spherical
T interp_spherical(T a, T b, float t)

Interpolates spherical between to vectors or quaternions, also known as slerp.

nlerp
quat nlerp(quat a, quat b, float t)

Normalized quaternion linear interpolation.

Meta

Authors

David Herberth

License

MIT