Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AnimCurve

动画曲线。

Hierarchy

  • AnimCurve

Index

Constructors

constructor

  • Parameters

    Returns AnimCurve

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
  • Returns boolean

hasLerp

  • hasLerp(): boolean
  • Returns boolean

valueAt

  • valueAt(index: number): any
  • Parameters

    • index: number

    Returns any

valueBetween

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

    • ratio: number
    • from: number
    • fromRatio: number
    • to: number
    • toRatio: number

    Returns any

Static Bezier

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

    • controlPoints: number[]

    Returns [number, number, number, number]

Generated using TypeDoc