2 Replies Latest reply on Aug 12, 2008 6:50 AM by Newsgroup_User

# Need Explaination About the Code

Hi All,
I have Piece of Code in AS2, i need help to Explain What is it.

The below are the Sample Codes :

Math.easeInQuart = function (t, b, c, d)
{
var _loc1 = t;
_loc1 = _loc1 / d;
return (c * (_loc1 / d) * _loc1 * _loc1 * _loc1 + b);
};
Math.easeOutQuart = function (t, b, c, d)
{
var _loc1 = t;
_loc1 = _loc1 / d - 1;
return (-c * ((_loc1 / d - 1) * _loc1 * _loc1 * _loc1 - 1) + b);
};
Math.easeInOutQuart = function (t, b, c, d)
{
var _loc1 = t;
_loc1 = _loc1 / (d / 2);
if (_loc1 / (d / 2) < 1)
{
return (c / 2 * _loc1 * _loc1 * _loc1 * _loc1 + b);
} // end if
_loc1 = _loc1 - 2;
return (-c / 2 * ((_loc1 - 2) * _loc1 * _loc1 * _loc1 - 2) + b);
};

I want to know What is the Input to the above function and what will be output ....

Thanks,
Kamalahasan.K

• ###### 1. Re: Need Explaination About the Code
Kamalahasan,

> I want to know What is the Input to the above function
> and what will be output ....

Those look like the early versions of Robert Penner's easing equations.