Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1006)

Unified Diff: sky/framework/fling-curve.dart

Issue 948073002: Fix typos in sky-drawer and sky-scrollable (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/framework/sky-drawer.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/fling-curve.dart
diff --git a/sky/framework/fling-curve.dart b/sky/framework/fling-curve.dart
index 6dce624dda84ad6d0643ace5290e864df0b03a1b..6a476d7085eb2c0a06d505a232b9615e6390aff5 100644
--- a/sky/framework/fling-curve.dart
+++ b/sky/framework/fling-curve.dart
@@ -9,15 +9,19 @@ const double _kDefaultBeta = 172.0;
const double _kDefaultGamma = 3.7;
double _positionAtTime(double t) {
- return kDefaultAlpha * math.exp(-kDefaultGamma * t) - kDefaultBeta * t - kDefaultAlpha;
+ return _kDefaultAlpha * math.exp(-_kDefaultGamma * t)
+ - _kDefaultBeta * t
+ - _kDefaultAlpha;
}
double _velocityAtTime(double t) {
- return -kDefaultAlpha * kDefaultGamma * math.exp(-kDefaultGamma * t) - kDefaultBeta;
+ return -_kDefaultAlpha * _kDefaultGamma * math.exp(-_kDefaultGamma * t)
+ - _kDefaultBeta;
}
double _timeAtVelocity(double v) {
- return -math.log((v + kDefaultBeta) / (-kDefaultAlpha * kDefaultGamma)) / kDefaultGamma;
+ return -math.log((v + _kDefaultBeta) / (-_kDefaultAlpha * _kDefaultGamma))
+ / _kDefaultGamma;
}
final double _kMaxVelocity = _velocityAtTime(0.0);
« no previous file with comments | « no previous file | sky/framework/sky-drawer.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698