Namespace: DuInterpolation

DuInterpolation

Interpolation methods

Methods

staticDuInterpolation.bezier(t, tMin, tMax, value1, value2, bezierPoints){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 6127
Interpolates a value with a bezier curve.
Name Type Default Description
t number The value to interpolate
tMin number 0 optional The minimum value of the initial range
tMax number 1 optional The maximum value of the initial range
value1 number 0 optional The minimum value of the interpolated result
value2 number 1 optional The maximum value of the interpolated result
bezierPoints Array.<number> [0.33,0.0,0.66,1.0] optional an Array of 4 coordinates wihtin the [0.0, 1.0] range which describes the Bézier interpolation. The default mimics the native ease() function
[ outTangentX, outTangentY, inTangentX, inTangentY ]
Returns:
Type Description
number the value.

staticDuInterpolation.exponential(t, tMin, tMax, value1, value2, rate){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 6169
Interpolates and extrapolates a value with an exponential function.
Name Type Default Description
t number The value to interpolate
tMin number 0 optional The minimum value of the initial range
tMax number 1 optional The maximum value of the initial range
value1 number 0 optional The minimum value of the interpolated result
value2 number 1 optional The maximum value of the interpolated result
rate number 1 optional The raising speed in the range [0, inf].
Returns:
Type Description
number the value.

staticDuInterpolation.gaussian(t, tMin, tMax, value1, value2, rate){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 6211
Interpolates a value with a gaussian function.
Name Type Default Description
t number The value to interpolate
tMin number 0 optional The minimum value of the initial range
tMax number 1 optional The maximum value of the initial range
value1 number 0 optional The minimum value of the interpolated result
value2 number 1 optional The maximum value of the interpolated result
rate number 0 optional The raising speed in the range [-1.0, 1.0].
Returns:
Type Description
number the value.

staticDuInterpolation.linear(value, min, max, targetMin, targetMax, extrapolate){Number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 6111
Linear (extra/inter)polation
Name Type Default Description
value Number The variable
min Number 0 optional The minimum input value
max Number 1 optional The maximum input value
targetMin Number 0 optional The minimum output value
targetMax Number 1 optional The maximum output value
extrapolate Boolean true optional Whether to extrapolate outside the target.
Returns:
Type Description
Number

staticDuInterpolation.logarithmic(t, tMin, tMax, value1, value2, rate){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 6275
Interpolates and extrapolates a value with a logarithmic function.
Name Type Default Description
t number The value to interpolate
tMin number 0 optional The minimum value of the initial range
tMax number 1 optional The maximum value of the initial range
value1 number 0 optional The minimum value of the interpolated result
value2 number 1 optional The maximum value of the interpolated result
rate number 1 optional The raising speed in the range [0, inf].
Returns:
Type Description
number the value.

staticDuInterpolation.logistic(t, tMin, tMax, value1, value2, rate, tMid){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 6322
Interpolates and extrapolates a value with a logistic (sigmoid) function.
Name Type Default Description
t number The value to interpolate
tMin number 0 optional The minimum value of the initial range
tMax number 1 optional The maximum value of the initial range
value1 number 0 optional The minimum value of the interpolated result
value2 number 1 optional The maximum value of the interpolated result
rate number 1 optional The raising speed in the range [0, inf].
tMid number optional The t value at which the interpolated value should be half way. By default, (tMin+tMax)/2
Returns:
Type Description
number the value