Class QuadEaseOutFunction

  • All Implemented Interfaces:
    Function

    public class QuadEaseOutFunction
    extends java.lang.Object
    implements Function
    Represents a ease out motion: starts at a steady speed, then slows down to a stop.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static QuadEaseOutFunction INSTANCE
      Singleton to avoid creating several instances.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float computeValue​(float t)
      Returns the value of the function for the given time factor.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INSTANCE

        public static final QuadEaseOutFunction INSTANCE
        Singleton to avoid creating several instances.
    • Method Detail

      • computeValue

        public float computeValue​(float t)
        Description copied from interface: Function
        Returns the value of the function for the given time factor.
        Specified by:
        computeValue in interface Function
        Parameters:
        t - the time factor, between 0 and 1.
        Returns:
        the value of the function for the given time, between 0 and 1.