// https://en.wikipedia.org/wiki/Hermite_interpolation inline FVector HermiteInterpolation(const FVector& P0, const FVector& P1, const FVector& V0, const FVector& V1, const float Alpha) { const float H1 = 2 * FMath::Pow(Alpha, 3) - 3 * FMath::Pow(Alpha, 2) + 1; const float H2 = -2 * FMath::Pow(Alpha, 3) + 3 * FMath::Pow(Alpha, 2); const float H3 = FMath::Pow(Alpha, 3) - 2 * FMath::Pow(Alpha, 2) + Alpha; const float H4 = FMath::Pow(Alpha, 3) - FMath::Pow(Alpha, 2); return H1 * P0 + H2 * P1 + H3 * V0 + H4 * V1; }