Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AnimCurve

动画曲线。

Hierarchy

  • AnimCurve

Index

Constructors

constructor

Properties

Private _duration

_duration: number

Private lerp

lerp: undefined | function = undefined

Lerp function used. If undefined, no lerp is performed.

Private _values

_values: CurveValue[] = []

The values of the keyframes. (y)

Optional type

type: EasingMethod | null = null

Optional types

types: Array<null | [number, number, number, number] | "constant" | "linear" | "quadIn" | "quadOut" | "quadInOut" | "cubicIn" | "cubicOut" | "cubicInOut" | "quartIn" | "quartOut" | "quartInOut" | "quintIn" | "quintOut" | "quintInOut" | "sineIn" | "sineOut" | "sineInOut" | "expoIn" | "expoOut" | "expoInOut" | "circIn" | "circOut" | "circInOut" | "elasticIn" | "elasticOut" | "elasticInOut" | "backIn" | "backOut" | "backInOut" | "bounceIn" | "bounceOut" | "bounceInOut" | "smooth" | "fade" | "quadOutIn" | "cubicOutIn" | "quartOutIn" | "quintOutIn" | "sineOutIn" | "expoOutIn" | "circOutIn" | "elasticOutIn" | "backOutIn" | "bounceOutIn"> = undefined

Static Linear

Linear: null = null

Methods

empty

  • empty(): boolean

hasLerp

  • hasLerp(): boolean

valueAt

  • valueAt(index: number): any

valueBetween

  • valueBetween(ratio: number, from: number, fromRatio: number, to: number, toRatio: number): any

Static Bezier

  • Bezier(controlPoints: number[]): [number, number, number, number]

Generated using TypeDoc