- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1
Tween
        jay19240 edited this page Dec 11, 2024 
        ·
        1 revision
      
    Generic values interpolator.
- 
new Tween(times: number[], values: T[], defaultFn: Function, fns: Function[]): Tween
- times: Times intervals.
- values: Values that will be associated with each time values.
- 
defaultFn: The interpolate function that will be used as a fallback if none of the functions in the fnsarray match the given time.
- fns: Interpolate functions that will be associated with each time values.
 
- 
get(index: number): number
- index
 
- getCurrentValue(): T
- 
interpolate(t: number): T
- t: The elapsed time.
 
- isEmpty(): boolean
- 
setLooped(looped: boolean): void
- looped: The loop flag.
 
- 
update(ts: number): void
- ts: The timestep.