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

Class BackOut

fr/lavache/anime/Easing.java:411–424  ·  view source on GitHub ↗

Back easing out - moving towards target, overshooting it slightly, then reversing and coming back to target.

Source from the content-addressed store, hash-verified

409 * Back easing out - moving towards target, overshooting it slightly, then reversing and coming back to target.
410 */
411 class BackOut extends Back {
412 public BackOut() {
413 super();
414 }
415
416 public BackOut(float overshoot) {
417 super(overshoot);
418 }
419
420 public float ease(float t, float b, float c, float d) {
421 float s = getOvershoot();
422 return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b;
423 }
424 }
425
426 /**
427 * Back easing in/out - backtracking slightly, then reversing direction and moving to target,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected