MCPcopy Create free account
hub / github.com/LaVache-FR/AnimationUtil / BackIn

Class BackIn

fr/lavache/anime/Easing.java:393–406  ·  view source on GitHub ↗

Back easing in - backtracking slightly, then reversing direction and moving to target.

Source from the content-addressed store, hash-verified

391 * Back easing in - backtracking slightly, then reversing direction and moving to target.
392 */
393 class BackIn extends Back {
394 public BackIn() {
395 super();
396 }
397
398 public BackIn(float overshoot) {
399 super(overshoot);
400 }
401
402 public float ease(float t, float b, float c, float d) {
403 float s = getOvershoot();
404 return c * (t /= d) * t * ((s + 1) * t - s) + b;
405 }
406 }
407
408 /**
409 * Back easing out - moving towards target, overshooting it slightly, then reversing and coming back to target.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected