Class HyperSpline
- java.lang.Object
-
- androidx.constraintlayout.core.motion.utils.HyperSpline
-
public class HyperSpline extends java.lang.ObjectProvides spline interpolation code. Currently not used but it is anticipated that we will be using it in the KeyMotion
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHyperSpline.Cubic
-
Constructor Summary
Constructors Constructor Description HyperSpline()HyperSpline(double[][] points)Spline in N dimensions
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleapproxLength(HyperSpline.Cubic[] curve)voidgetPos(double p, double[] x)voidgetPos(double p, float[] x)doublegetPos(double p, int splineNumber)voidgetVelocity(double p, double[] v)voidsetup(double[][] points)
-
-
-
Method Detail
-
setup
public void setup(double[][] points)
-
getVelocity
public void getVelocity(double p, double[] v)
-
getPos
public void getPos(double p, double[] x)
-
getPos
public void getPos(double p, float[] x)
-
getPos
public double getPos(double p, int splineNumber)
-
approxLength
public double approxLength(HyperSpline.Cubic[] curve)
-
-