inmath.interpolate

inmath.lerpolate

Members

Functions

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

Catmull-rom lerpolation between four points.

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

Catmull-derivatives of the lerpolation between four points.

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

Hermite lerpolation (cubic hermite spline).

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

lerpolates linear between two points, also known as lerp.

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

Nearest lerpolation of two points.

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

Normalized quaternion linear lerpolation.

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

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

Meta

Authors

David Herberth, Inochi2D Project