interpolation factor [0..1]
Exponential easing.
easing behavior [0.0 .. ∞]
-
Computes exponential factor to interpolate from a
to b
over num
steps. I.e. multiplying a
with the returned factor will yield b
after num
steps. All args must be > 0.
Computes gaussian bell curve for given center bias
and sigma
(spread).
Impulse generator. Peaks at t = 1/k
impulse width (higher values => shorter impulse)
Inverse/flipped version of circular (ease in).
interpolation factor [0..1]
Zoomlens interpolation with customizable lens position, behavior and strength.
lens pos
lens strength
interpolation factor [0..1]
Linear interpolation without clamping. Computes a + (b - a) * t
start value
end value
interpolation factor [0..1]
BL value
BR value
TL value
TR value
1st interpolation factor
2nd interpolation factor
Computes cubic-hermite interpolation between a
/ b
at normalized time t
and using respective tangents ta
/ tb
.
-
-
-
-
-
Returns hermite interpolation of a, b, c, d
at normalized position t
, where a
and d
are used as predecessor/successor of b
/ c
and only inform the tangent of the interpolation curve. The interpolated result is that of b
and c
.
Assumes all inputs are uniformly spaced. If that's not the case, use mixCubicHermite with one of the tangent generators supporting non-uniform spacing of points.
See: https://www.desmos.com/calculator/j4gf8g9vkr
Source: https://www.musicdsp.org/en/latest/Other/93-hermite-interpollation.html
-
-
-
-
-
Generalized Schlick bias gain curve, based on: https://arxiv.org/abs/2010.09714
curve strength. recommended (0..64]
pivot position [0..1]
input val [0..1]
Sigmoid function for inputs arounds center bias.
center value (for which result = 0.5)
steepness
input value
Sigmoid function for inputs in [0..1] interval. Center bias = 0.5.
steepness
input value
Sigmoid function for inputs in [-1..+1] interval. Center bias = 0
-
-
Helper function for mixCubicHermite. Computes cardinal tangents based on point neighbors of a point B (not given), i.e. a
(predecessor) and c
(successor) and their times (defaults to uniformly spaced). The optional tension
parameter can be used to scale the tangent where 0.0 produces a Cardinal spline tangent and 1.0 a Catmull-Rom (opposite to the Wikipedia ref).
https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Cardinal_spline
-
-
-
-
-
Helper function for mixCubicHermite. Computes tangent for curr
, based on 3-point finite difference, where prev
& next
are curr
's neighbors and the tX
the three points' respective time values. The latter are equally spaced by default (each 1.0 apart).
Using this function with equal spacing of 1.0 and together with mixCubicHermite will produce same results as the somewhat optimized variant mixHermite.
https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Finite_difference
-
-
-
-
-
-
HOF interpolator. Takes a timing function f
and interval [from,to]
. Returns function which takes normalized time (in [0,1] range) as single arg and returns interpolated value.
-
-
-
Generated using TypeDoc
Circular interpolation (ease out):
sqrt(1 - (1 - t)^2)
Reference: https://www.desmos.com/calculator/tisoiazdrw