++ed by:
Jason McVeigh

NAME

Algorithm::Easing::Quadratic - Calculate eased translations between two positive whole integer values over time

SYNOPSIS

``````        use Algorithm::Easing;

# total time for eased translation as a real positive integer value
my \$d = 2.5;

# begin
my \$b = 0;

# change
my \$c = 240;

# time passed in seconds as a real positive integer between each frame
my \$frame_time = 0.0625;

my @p = [319,0];

for(my \$t = 0; \$t < 2.5; \$t += 0.0625) {
\$p[1] = \$translation->ease_out(\$t,\$b,\$c,\$d)

# plot
...;
}``````

METHODS

ease_none usage :

``````        Parameters :
Let t be time,
Let b be begin,
Let c be change,
Let d be duration,
Results :
Let p be position,

my \$p = \$obj->ease_none(\$t,\$b,\$c,\$d);``````

This method is used for a linear translation between two positive real whole integers using a positive real integer as the parameter for time.

ease_in usage :

``````        Parameters :
Let t be time,
Let b be begin,
Let c be change,
Let d be duration,
Results :
Let p be position,

my \$p = \$obj->ease_in(\$t,\$b,\$c,\$d);``````

This method is used to ease in between two positive real whole integers using a positive real integer as the parameter for time in quadratic fashion.

ease_out usage :

``````        Parameters :
Let t be time,
Let b be begin,
Let c be change,
let d be duration,
Results :
Let p be position,

my \$p = \$obj->ease_out(\$t,\$b,\$c,\$d);``````

This method is used to ease in between two positive real whole integers using a positive real integer as the parameter for time in quadratic fashion.

ease_both usage :

``````        Parameters :
Let t be time,
Let b be begin,
Let c be change,
Let d be duration,
Results :
Let p be position,

my \$p = \$obj->ease_both(\$t,\$b,\$c,\$d);``````

This method is used to ease both in then out between two positive real whole integers using a positive real integer as the parameter for time in quadratic fashion.

AUTHOR

Jason McVeigh, <jmcveigh@outlook.com>