Skip to content

Home > @esengine/ecs-framework-monorepo > CachedInterpolator

CachedInterpolator class

带缓存的插值器类 用于需要重复插值相同起始和目标值的情况

Signature:

typescript
export declare class CachedInterpolator<T>

Constructors

Constructor

Modifiers

Description

(constructor)(interpolator)

Constructs a new instance of the CachedInterpolator class

Methods

Method

Modifiers

Description

clearCache()

清空缓存

get(t)

获取插值结果

setRange(from, to)

设置插值范围

基于 MIT 许可证发布