Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AnimationCurve

描述一条曲线,其中每个相邻关键帧采用三次hermite插值计算。

Hierarchy

  • AnimationCurve

Index

Constructors

constructor

Properties

Private cachedKey

cachedKey: OptimizedKey

keyFrames

keyFrames: Keyframe[] | null

曲线的关键帧。

postWrapMode

postWrapMode: number = WrapMode.Clamp

当采样时间超出右端时采用的循环模式WrapMode

preWrapMode

preWrapMode: number = WrapMode.Loop

当采样时间超出左端时采用的循环模式WrapMode

Static Private defaultKF

defaultKF: Keyframe[] = [{time: 0,value: 1,inTangent: 0,outTangent: 0,}, {time: 1,value: 1,inTangent: 0,outTangent: 0,}]

Methods

addKey

evaluate

  • evaluate(time: number): number

Generated using TypeDoc