This is an automated email from the ASF dual-hosted git repository.
yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new dc49504 Utilize more ease functions
dc49504 is described below
commit dc49504c337510a26ce42f646cc7ad281a900c98
Author: Yishay Weiss <[email protected]>
AuthorDate: Sun Oct 18 08:51:23 2020 +0100
Utilize more ease functions
---
.../MXRoyale/src/main/royale/mx/effects/easing/Exponential.as | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git
a/frameworks/projects/MXRoyale/src/main/royale/mx/effects/easing/Exponential.as
b/frameworks/projects/MXRoyale/src/main/royale/mx/effects/easing/Exponential.as
index 3e8a0e6..a4479ab 100644
---
a/frameworks/projects/MXRoyale/src/main/royale/mx/effects/easing/Exponential.as
+++
b/frameworks/projects/MXRoyale/src/main/royale/mx/effects/easing/Exponential.as
@@ -61,11 +61,10 @@ public class Exponential
* @playerversion AIR 1.1
* @productversion Royale 0.9.3
*/
- /* public static function easeIn(t:Number, b:Number,
- c:Number,
d:Number):Number
+ public static function easeIn(t:Number, b:Number, c:Number,
d:Number):Number
{
return t == 0 ? b : c * Math.pow(2, 10 * (t / d - 1)) + b;
- } */
+ }
/**
* The <code>easeOut()</code> method starts motion fast,
@@ -112,8 +111,7 @@ public class Exponential
* @playerversion AIR 1.1
* @productversion Royale 0.9.3
*/
- /* public static function easeInOut(t:Number, b:Number,
-
c:Number, d:Number):Number
+ public static function easeInOut(t:Number, b:Number, c:Number,
d:Number):Number
{
if (t == 0)
return b;
@@ -125,7 +123,7 @@ public class Exponential
return c / 2 * Math.pow(2, 10 * (t - 1)) + b;
return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b;
- } */
+ }
}
}