Class LengthItem
java.lang.Object
org.pushingpixels.radiance.animation.api.ease.LengthItem
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLengthItem
(float length, float t) LengthItem
(float length, float t, float fraction) -
Method Summary
Modifier and TypeMethodDescriptionfloat
float
float
getT()
(package private) void
setFraction
(float totalLength)
-
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)
-