Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • EaseTo

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new EaseTo(actor: Actor, x: number, y: number, duration: number, easingFcn: function): EaseTo
  • Parameters

    • actor: Actor
    • x: number
    • y: number
    • duration: number
    • easingFcn: function
        • (currentTime: number, startValue: number, endValue: number, duration: number): number
        • Parameters

          • currentTime: number
          • startValue: number
          • endValue: number
          • duration: number

          Returns number

    Returns EaseTo

Properties

actor

actor: Actor

easingFcn

easingFcn: function

Type declaration

    • (currentTime: number, startValue: number, endValue: number, duration: number): number
    • Parameters

      • currentTime: number
      • startValue: number
      • endValue: number
      • duration: number

      Returns number

Methods

isComplete

  • isComplete(actor: Actor): boolean

reset

  • reset(): void

stop

  • stop(): void

update

  • update(delta: number): void