|
11
|
1 |
package com.eclecticdesignstudio.motion.easing { |
|
|
2 |
|
|
|
3 |
|
|
|
4 |
import com.eclecticdesignstudio.motion.easing.equations.BackEaseIn; |
|
|
5 |
import com.eclecticdesignstudio.motion.easing.equations.BackEaseInOut; |
|
|
6 |
import com.eclecticdesignstudio.motion.easing.equations.BackEaseOut; |
|
|
7 |
|
|
|
8 |
|
|
|
9 |
/** |
|
|
10 |
* @author Joshua Granick |
|
|
11 |
* @author Zeh Fernando, Nate Chatellier |
|
|
12 |
* @author Robert Penner / http://www.robertpenner.com/easing_terms_of_use.html |
|
|
13 |
*/ |
|
|
14 |
final public class Back { |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
static public function get easeIn ():IEasing { return new BackEaseIn (1.70158); } |
|
|
18 |
static public function get easeOut ():IEasing { return new BackEaseOut (1.70158); } |
|
|
19 |
static public function get easeInOut ():IEasing { return new BackEaseInOut (1.70158); } |
|
|
20 |
|
|
|
21 |
|
|
|
22 |
static public function easeInWith (s:Number):IEasing { |
|
|
23 |
|
|
|
24 |
return new BackEaseIn (s); |
|
|
25 |
|
|
|
26 |
} |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
static public function easeOutWith (s:Number):IEasing { |
|
|
30 |
|
|
|
31 |
return new BackEaseOut (s); |
|
|
32 |
|
|
|
33 |
} |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
static public function easeInOutWith (s:Number):IEasing { |
|
|
37 |
|
|
|
38 |
return new BackEaseInOut (s); |
|
|
39 |
|
|
|
40 |
} |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
} |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
} |