Пример #1
0
 /// <summary>
 /// Short for `eased EASE TIME ss0 vhometime TIME LOCATION`.
 /// <br/>Note: EaseToTarget with NROFFSET is preferred. It has the same signature and avoids Riemann errors.
 /// </summary>
 public static ExTP EaseDVHomeT([LookupMethod] Func <TEx <float>, TEx <float> > smoother, float time, ExTP location)
 => EaseD(smoother, time, ExMSamplers.SS0(VHomeTime(_ => ExC(time), location)));
Пример #2
0
 /// <summary>
 /// Short for `* smooth / t TIME ss0 - LOCATION loc`. Use with NROFFSET.
 /// </summary>
 public static ExTP EaseToTarget([LookupMethod] Func <tfloat, tfloat> ease, ExBPY time, ExTP location) => bpi =>
 ExM.Mul(ease(Div(bpi.t, time(bpi))), ExMSamplers.SS0(x => Sub(location(x), x.loc))(bpi));
Пример #3
0
 /// <summary>
 /// Short for `ss0 vhometime TIME LOCATION`.
 /// </summary>
 /// <returns></returns>
 public static ExTP SSVHomeT(ExBPY time, ExTP location) => ExMSamplers.SS0(VHomeTime(time, location));