MathHelperCatmullRom Method |
Performs a Catmull-Rom interpolation using the specified positions.
Namespace: CFX.UtilitiesAssembly: CFX (in CFX.dll) Version: 2.0.0+5bb1f71a933ed371a0f5f2d5e7db34c89b75f3ea
Syntaxpublic static double CatmullRom(
double value1,
double value2,
double value3,
double value4,
double amount
)
Public Shared Function CatmullRom (
value1 As Double,
value2 As Double,
value3 As Double,
value4 As Double,
amount As Double
) As Double
Parameters
- value1 Double
- The first position in the interpolation.
- value2 Double
- The second position in the interpolation.
- value3 Double
- The third position in the interpolation.
- value4 Double
- The fourth position in the interpolation.
- amount Double
- Weighting factor.
Return Value
DoubleA position that is the result of the Catmull-Rom interpolation.
See Also