java.lang.Object
org.pushingpixels.radiance.animation.api.ease.LengthItem

class LengthItem extends Object
Struct used to store information about length values. Specifically, each item stores the "length" (which can be thought of as the time elapsed along the spline path), the "t" value at this length (used to calculate the (x,y) point along the spline), and the "fraction" which is equal to the length divided by the total absolute length of the spline. After we calculate all LengthItems for a give spline, we have a list of entries which can return the t values for fractional lengths from 0 to 1.
  • Field Details

    • length

      float length
    • t

      float t
    • fraction

      float fraction
  • Constructor Details

    • LengthItem

      LengthItem(float length, float t, float fraction)
    • LengthItem

      LengthItem(float length, float t)
  • Method Details

    • getLength

      public float getLength()
    • getT

      public float getT()
    • getFraction

      public float getFraction()
    • setFraction

      void setFraction(float totalLength)