gl3n.interpolate

gl3n.interpolate

Authors:
David Herberth

License:
MIT

T interp(T)(T a, T b, float t);
alias interp_linear;
alias lerp;
alias mix;
Interpolates linear between two points, also known as lerp.

T interp_spherical(T)(T a, T b, float t);
alias slerp;
Interpolates spherical between to vectors or quaternions, also known as slerp.

T interp_nearest(T)(T x, T y, float t);
Nearest interpolation of two points.

T interp_catmullrom(T)(T p0, T p1, T p2, T p3, float t);
Catmull-rom interpolation between four points.

T catmullrom_derivative(T)(T p0, T p1, T p2, T p3, float t);
Catmull-derivatives of the interpolation between four points.

T interp_hermite(T)(T x, T tx, T y, T ty, float t);
Hermite interpolation (cubic hermite spline).


Page generated by Ddoc.