Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AnimationCurve

Describe a curve in which three times Hermite interpolation is used for each adjacent key frame.

Hierarchy

  • AnimationCurve

Index

Constructors

constructor

Properties

Private cachedKey

cachedKey: OptimizedKey

keyFrames

keyFrames: Keyframe[] | null

The key frame of the curve.

postWrapMode

postWrapMode: number = WrapMode.Clamp

Cycle mode WrapMode when the sampling time exceeds the right end.

preWrapMode

preWrapMode: number = WrapMode.Loop

Loop mode WrapMode when the sampling time exceeds the left end.

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