Class: Interpolator
interpolator class
Constructors
Methods
Constructors
constructor
• new Interpolator(): Interpolator
Returns
Methods
to
▸ to(target
, property
, durtion
, interpolatorEnum?
): Interpolator
Creates an animation from the current property to the specified target property.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
target | any | undefined | Objects that need to be animated |
property | any | undefined | Animation parameter |
durtion | number | undefined | Animation duration, usually seconds |
interpolatorEnum | InterpolatorEnum | InterpolatorEnum.AccelerateInterpolator | Interpolator type |
Returns
Defined in
src/math/TimeInterpolator.ts:411
removeList
▸ removeList(interpolators
, dispose?
): void
Parameters
Name | Type |
---|---|
interpolators | Interpolator [] |
dispose? | boolean |
Returns
void