CubicInterp

@addtogroup libnoise @{ Performs cubic interpolation between two values bound between two other values.

@param n0 The value before the first value. @param n1 The first value. @param n2 The second value. @param n3 The value after the second value. @param a The alpha value.

@returns The interpolated value.

The alpha value should range from 0.0 to 1.0. If the alpha value is 0.0, this function returns @a n1. If the alpha value is 1.0, this function returns @a n2.

double
CubicInterp
(
double n0
,
double n1
,
double n2
,
double n3
,
double a
)

Meta