IEasingFunction

This represents the main contract an easing function should follow. Easing functions are used throughout the animation system.

see

http://doc.babylonjs.com/babylon101/animations#easing-functions

Hierarchy

  • IEasingFunction

Implemented by

Index

Methods

Methods

ease

Find examples in Playground
  • ease(gradient: number): number
  • Given an input gradient between 0 and 1, this returns the corrseponding value of the easing function. The link below provides some of the most common examples of easing functions.

    see

    https://easings.net/

    Parameters

    • gradient: number

      Defines the value between 0 and 1 we want the easing value for

    Returns number

    the corresponding value on the curve defined by the easing function

Generated using TypeDoc