topical media & game development
#graphic-flex-image-effects-07-source-aeon-easing-Sine.ax
#graphic-flex-image-effects-07-source-aeon-easing-Sine.ax
[swf]
[flash]
flex
package aeon.easing {
public class @ax-graphic-flex-image-effects-07-source-aeon-easing-Sine {
static public function easeIn (t:Number, b:Number, c:Number, d:Number):Number {
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
}
static public function easeOut (t:Number, b:Number, c:Number, d:Number):Number {
return c * Math.sin(t/d * (Math.PI/2)) + b;
}
static public function easeInOut (t:Number, b:Number, c:Number, d:Number):Number {
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
}
}
}
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.