java.lang.Object
org.pushingpixels.radiance.animation.api.ease.Sine
All Implemented Interfaces:
TimelineEase

public class Sine extends Object implements TimelineEase
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    map(float durationFraction)
    Maps the [0.0-1.0] range which is the fraction of the associated timeline progression in time (duration fraction) to the [0.0-1.0] range which is used to interpolate the value(s) of the underlying property(s) between their from and to values.

    Methods inherited from class java.lang.Object

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

    • Sine

      public Sine()
  • Method Details

    • map

      public float map(float durationFraction)
      Description copied from interface: TimelineEase
      Maps the [0.0-1.0] range which is the fraction of the associated timeline progression in time (duration fraction) to the [0.0-1.0] range which is used to interpolate the value(s) of the underlying property(s) between their from and to values.
      Specified by:
      map in interface TimelineEase
      Parameters:
      durationFraction - Fraction of the timeline progression in time. For example, if the timeline is running for 1000 milliseconds and 600 milliseconds have passed, this fraction is 0.6
      Returns:
      Value in the [0.0-1.0] range for interpolating the underlying property or properties.