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

Side by Side Diff: sky/sdk/lib/framework/animation/curves.dart

Issue 1150433002: Add library names to many sky libraries (Closed) Base URL: git@github.com:domokit/mojo.git@fix_shelldb
Patch Set: Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 library animation_curves;
6
5 double _evaluateCubic(double a, double b, double m) { 7 double _evaluateCubic(double a, double b, double m) {
6 // TODO(abarth): Would Math.pow be faster? 8 // TODO(abarth): Would Math.pow be faster?
7 return 3 * a * (1 - m) * (1 - m) * m + 3 * b * (1 - m) * m * m + m * m * m; 9 return 3 * a * (1 - m) * (1 - m) * m + 3 * b * (1 - m) * m * m + m * m * m;
8 } 10 }
9 11
10 const double _kCubicErrorBound = 0.001; 12 const double _kCubicErrorBound = 0.001;
11 13
12 abstract class Curve { 14 abstract class Curve {
13 double transform(double t); 15 double transform(double t);
14 } 16 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 65 }
64 } 66 }
65 67
66 const Linear linear = const Linear(); 68 const Linear linear = const Linear();
67 const Cubic ease = const Cubic(0.25, 0.1, 0.25, 1.0); 69 const Cubic ease = const Cubic(0.25, 0.1, 0.25, 1.0);
68 const Cubic easeIn = const Cubic(0.42, 0.0, 1.0, 1.0); 70 const Cubic easeIn = const Cubic(0.42, 0.0, 1.0, 1.0);
69 const Cubic easeOut = const Cubic(0.0, 0.0, 0.58, 1.0); 71 const Cubic easeOut = const Cubic(0.0, 0.0, 0.58, 1.0);
70 const Cubic easeInOut = const Cubic(0.42, 0.0, 0.58, 1.0); 72 const Cubic easeInOut = const Cubic(0.42, 0.0, 0.58, 1.0);
71 const ParabolicRise parabolicRise = const ParabolicRise(); 73 const ParabolicRise parabolicRise = const ParabolicRise();
72 const ParabolicFall parabolicFall = const ParabolicFall(); 74 const ParabolicFall parabolicFall = const ParabolicFall();
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/animation/animated_value.dart ('k') | sky/sdk/lib/framework/animation/generators.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698