Demystified the cubic_easing_inout function.