gl3n.interpolate
gl3n.interpolate
License
MIT
-
Declaration
Tinterp(T)(Ta, Tb, floatt);
aliasinterp_linear= interp(T)(T a, T b, float t);
aliaslerp= interp(T)(T a, T b, float t);
aliasmix= interp(T)(T a, T b, float t);Interpolates linear between two points, also known as
lerp. -
Declaration
Tinterp_spherical(T)(Ta, Tb, floatt) if (is_vector!T || is_quaternion!T);
aliasslerp= interp_spherical(T)(T a, T b, float t) if (is_vector!T || is_quaternion!T);Interpolates spherical between to vectors or quaternions, also known as
slerp. -
Declaration
pure nothrow @safe quatnlerp(quata, quatb, floatt);Normalized quaternion linear interpolation.
-
Declaration
Tinterp_nearest(T)(Tx, Ty, floatt);Nearest interpolation of two points.
-
Declaration
Tinterp_catmullrom(T)(Tp0, Tp1, Tp2, Tp3, floatt);Catmull-rom interpolation between four points.
-
Declaration
Tcatmullrom_derivative(T)(Tp0, Tp1, Tp2, Tp3, floatt);Catmull-derivatives of the interpolation between four points.
-
Declaration
Tinterp_hermite(T)(Tx, Ttx, Ty, Tty, floatt);Hermite interpolation (cubic hermite spline).