Created
January 22, 2020 18:47
-
-
Save creativecreatorormaybenot/31ebde282d88b86b8b2f6a617d6f9850 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@override | |
double transformInternal(double t) { | |
return troughTransform(elasticTransform(t)); | |
} | |
double elasticTransform(double t) { | |
final b = 12 / 27; | |
return 1 + pow(2, -10 * t) * sin(((t - b / 4) * pi * 2) / b); | |
} | |
double troughTransform(double t) { | |
return t * (1 - pow(e, pow(t, 12) * -5) * 4 / 9); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment