public class LinearCurveFit extends CurveFit


This performs a simple linear interpolation in multiple dimensions

Summary

Public constructors

LinearCurveFit(double[] time, double[][] y)

Public methods

double
getPos(double t, int j)
void
getPos(double t, double[] v)
void
getPos(double t, float[] v)
double
getSlope(double t, int j)
void
getSlope(double t, double[] v)
double[]

Inherited Constants

From androidx.constraintlayout.core.motion.utils.CurveFit
static final int
static final int
LINEAR = 1
static final int
SPLINE = 0

Inherited methods

From androidx.constraintlayout.core.motion.utils.CurveFit
static CurveFit
get(int type, double[] time, double[][] y)
static CurveFit
getArc(int[] arcModes, double[] time, double[][] y)

Public constructors

LinearCurveFit

Added in 1.1.0
public LinearCurveFit(double[] time, double[][] y)

Public methods

getPos

Added in 1.1.0
public double getPos(double t, int j)

getPos

Added in 1.1.0
public void getPos(double t, double[] v)

getPos

Added in 1.1.0
public void getPos(double t, float[] v)

getSlope

Added in 1.1.0
public double getSlope(double t, int j)

getSlope

Added in 1.1.0
public void getSlope(double t, double[] v)

getTimePoints

Added in 1.1.0
public double[] getTimePoints()