Files
Nitro_Render_V3/packages/utils/src/motion/Ease.ts
T
2024-04-03 09:27:56 +02:00

34 lines
517 B
TypeScript

import { Interval } from './Interval';
export class Ease extends Interval
{
protected _interval: Interval;
constructor(k: Interval)
{
super(k.target, k.duration);
this._interval = k;
}
public start(): void
{
super.start();
this._interval.start();
}
public update(k: number): void
{
super.update(k);
this._interval.update(k);
}
public stop(): void
{
super.stop();
this._interval.stop();
}
}