3 our $timer = AA->new('T');
4 $timer->DefSet('T', 0);
7 return $timer->Get('T');
11 $timer->Set('T', $timer->Get('T') + 1);
16 my ($class, $x0, $x1, $dt) = @_;
17 my $t0 = AA::Anim->time;
19 my $t = AA::Anim->time;
20 if ($t - $t0 >= $dt) {
23 return $x0 + ($x1 - $x0) * ($t - $t0)/$dt;