Calculates a Catmull-Rom value from the given points, based on an alpha of 0.5.
name | type | description |
---|---|---|
t | number |
The amount to interpolate by. |
p0 | number |
The first control point. |
p1 | number |
The second control point. |
p2 | number |
The third control point. |
p3 | number |
The fourth control point. |
The Catmull-Rom value.