Math: Ease In, ease Out a displacement using Hermite curve with time constraint
问题 I'm trying to write a method that interpolates from 0 to x (position of an object in one dimension) over time using acceleration at the beginning and deceleration at the end (ease out / ease in) with the only constraints that the total time is provided , as well as the duration of the acceleration and deceleration . the motion should replicate the inertia effect and I'm considering a Hermite curve for the non-linear portions. double Interpolate( double timeToAccel, double timeCruising, double