Creates an ease-in-out function based on an n-th degree polynomial
Degree of the polynomial
The easing function
Creates an ease-in-out function based on an n-th degree polynomial