Skip to content

Class: Interpolator

interpolator class

Constructors

Methods

Constructors

constructor

new Interpolator(): Interpolator

Returns

Interpolator

Methods

to

to(target, property, durtion, interpolatorEnum?): Interpolator

Creates an animation from the current property to the specified target property.

Parameters

NameTypeDefault valueDescription
targetanyundefinedObjects that need to be animated
propertyanyundefinedAnimation parameter
durtionnumberundefinedAnimation duration, usually seconds
interpolatorEnumInterpolatorEnumInterpolatorEnum.AccelerateInterpolatorInterpolator type

Returns

Interpolator

Defined in

src/math/TimeInterpolator.ts:411


removeList

removeList(interpolators, dispose?): void

Parameters

NameType
interpolatorsInterpolator[]
dispose?boolean

Returns

void

Defined in

src/math/TimeInterpolator.ts:451