Class Linear

  • All Implemented Interfaces:
    Easing

    public class Linear
    extends java.lang.Object
    implements Easing
    Linear easing operation.
    • Constructor Summary

      Constructors 
      Constructor Description
      Linear()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float easeIn​(float time, float begin, float change, float duration)
      Easing in - accelerating from zero velocity.
      float easeInOut​(float time, float begin, float change, float duration)
      Easing in and out - acceleration until halfway, then deceleration.
      float easeOut​(float time, float begin, float change, float duration)
      Easing out - decelerating to zero velocity.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Linear

        public Linear()
    • Method Detail

      • easeIn

        public float easeIn​(float time,
                            float begin,
                            float change,
                            float duration)
        Description copied from interface: Easing
        Easing in - accelerating from zero velocity.
        Specified by:
        easeIn in interface Easing
        Parameters:
        time - The current time since the beginning, or how long into the easing we are.
        begin - The beginning position.
        change - The total change in position.
        duration - The total duration of the easing.
        Returns:
        The updated position at the current point in time, according to the easing equation.
      • easeOut

        public float easeOut​(float time,
                             float begin,
                             float change,
                             float duration)
        Description copied from interface: Easing
        Easing out - decelerating to zero velocity.
        Specified by:
        easeOut in interface Easing
        Parameters:
        time - The current time since the beginning, or how long into the easing we are.
        begin - The beginning position.
        change - The total change in position.
        duration - The total duration of the easing.
        Returns:
        The updated position at the current point in time, according to the easing equation.
      • easeInOut

        public float easeInOut​(float time,
                               float begin,
                               float change,
                               float duration)
        Description copied from interface: Easing
        Easing in and out - acceleration until halfway, then deceleration.
        Specified by:
        easeInOut in interface Easing
        Parameters:
        time - The current time since the beginning, or how long into the easing we are.
        begin - The beginning position.
        change - The total change in position.
        duration - The total duration of the easing.
        Returns:
        The updated position at the current point in time, according to the easing equation.