mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
21 lines
469 B
ActionScript
21 lines
469 B
ActionScript
package com.greensock.easing
|
|
{
|
|
public final class ExpoInOut extends Ease
|
|
{
|
|
|
|
public static var ease:ExpoInOut = new ExpoInOut();
|
|
|
|
public function ExpoInOut()
|
|
{
|
|
super();
|
|
}
|
|
|
|
override public function getRatio(param1:Number) : Number
|
|
{
|
|
param1 *= 2;
|
|
return param1 < 1 ? 0.5 * Math.pow(2,10 * (param1 - 1)) : 0.5 * (2 - Math.pow(2,-10 * (param1 - 1)));
|
|
}
|
|
}
|
|
}
|
|
|