Class ExpoEaseInFunction

  • All Implemented Interfaces:
    Function

    public class ExpoEaseInFunction
    extends Object
    implements Function
    Represents a ease in motion: starts at a slow speed, then reaches and maintain a steady speed through the stop instruction.
    • Field Detail

      • INSTANCE

        public static final ExpoEaseInFunction 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.