A bezier interpolation method.
name | type | description |
---|---|---|
v | Array.<number> |
The input array of values to interpolate between. |
k | number |
The percentage of interpolation, between 0 and 1. |
The interpolated value.
A Catmull-Rom interpolation method.
name | type | description |
---|---|---|
v | Array.<number> |
The input array of values to interpolate between. |
k | number |
The percentage of interpolation, between 0 and 1. |
The interpolated value.
A cubic bezier interpolation method.
https://medium.com/@adrian_cooney/bezier-interpolation-13b68563313a
name | type | description |
---|---|---|
t | number |
The percentage of interpolation, between 0 and 1. |
p0 | number |
The start point. |
p1 | number |
The first control point. |
p2 | number |
The second control point. |
p3 | number |
The end point. |
The interpolated value.
A linear interpolation method.
name | type | description |
---|---|---|
v | Array.<number> |
The input array of values to interpolate between. |
k | number |
The percentage of interpolation, between 0 and 1. |
The interpolated value.
A quadratic bezier interpolation method.
name | type | description |
---|---|---|
t | number |
The percentage of interpolation, between 0 and 1. |
p0 | number |
The start point. |
p1 | number |
The control point. |
p2 | number |
The end point. |
The interpolated value.
A Smoother Step interpolation method.
name | type | description |
---|---|---|
t | number |
The percentage of interpolation, between 0 and 1. |
min | number |
The minimum value, also known as the 'left edge', assumed smaller than the 'right edge'. |
max | number |
The maximum value, also known as the 'right edge', assumed greater than the 'left edge'. |
The interpolated value.
A Smooth Step interpolation method.
name | type | description |
---|---|---|
t | number |
The percentage of interpolation, between 0 and 1. |
min | number |
The minimum value, also known as the 'left edge', assumed smaller than the 'right edge'. |
max | number |
The maximum value, also known as the 'right edge', assumed greater than the 'left edge'. |
The interpolated value.