Module com.cryptoalgo.oursql.oursql
Package com.cryptoalgo.oursql.support.ui
Class SpringInterpolator
java.lang.Object
javafx.animation.Interpolator
com.cryptoalgo.oursql.support.ui.SpringInterpolator
public class SpringInterpolator
extends javafx.animation.Interpolator
An interpolator that simulates interpolation with spring physics.
-
Field Summary
Fields inherited from class javafx.animation.Interpolator
DISCRETE, EASE_BOTH, EASE_IN, EASE_OUT, LINEAR
-
Constructor Summary
ConstructorDescriptionSpringInterpolator
(double stiffness, double mass, double damping) Convenience constructor that specifies a default precision value of 0.05.SpringInterpolator
(double stiffness, double mass, double damping, double precision) Create a spring interpolator with custom values -
Method Summary
Methods inherited from class javafx.animation.Interpolator
interpolate, interpolate, interpolate, interpolate, interpolate, SPLINE, TANGENT, TANGENT
-
Constructor Details
-
SpringInterpolator
public SpringInterpolator(double stiffness, double mass, double damping) Convenience constructor that specifies a default precision value of 0.05. All other parameters are passed as-is toSpringInterpolator(double stiffness, double mass, double damping, double precision)
- Parameters:
stiffness
- Stiffness of spring in simulationmass
- Mass of object to simulatedamping
- Dampening to use for simulation- See Also:
-
SpringInterpolator
public SpringInterpolator(double stiffness, double mass, double damping, double precision) Create a spring interpolator with custom values- Parameters:
stiffness
- Stiffness of spring in simulationmass
- Mass of object to simulatedamping
- Dampening to use for simulationprecision
- Stop simulation when (x-target) and v are both less than this value- See Also:
-
-
Method Details
-
curve
protected double curve(double t) - Specified by:
curve
in classjavafx.animation.Interpolator
-