Skip to main content

EaseTo

@deprecated

use moveTo({pos: Vector, duration: number, easing: EasingFunction})

Implements

Index

Constructors

constructor

  • new EaseTo(entity: Entity<any>, x: number, y: number, duration: number, easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number): EaseTo
  • Parameters

    • entity: Entity<any>
    • x: number
    • y: number
    • duration: number
    • easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number

      Returns EaseTo

    Properties

    publiceasingFcn

    easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number

    Type declaration

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

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

        Returns number

    id

    id: number = ...

    Methods

    publicisComplete

    • isComplete(): boolean
    • Returns boolean

    publicreset

    • reset(): void
    • Returns void

    publicstop

    • stop(): void
    • Returns void

    publicupdate

    • update(elapsed: number): void
    • Parameters

      • elapsed: number

      Returns void