public class ArcCurveFit extends CurveFit


This provides provides a curve fit system that stitches the x,y path together with quarter ellipses

Summary

Constants

static final int
static final int
static final int
static final int
static final int
static final int

Public constructors

ArcCurveFit(int[] arcModes, 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)

Constants

ARC_ABOVE

Added in 1.1.0
public static final int ARC_ABOVE = 5

ARC_BELOW

Added in 1.1.0
public static final int ARC_BELOW = 4

ARC_START_FLIP

Added in 1.1.0
public static final int ARC_START_FLIP = 3

ARC_START_HORIZONTAL

Added in 1.1.0
public static final int ARC_START_HORIZONTAL = 2

ARC_START_LINEAR

Added in 1.1.0
public static final int ARC_START_LINEAR = 0

ARC_START_VERTICAL

Added in 1.1.0
public static final int ARC_START_VERTICAL = 1

Public constructors

ArcCurveFit

Added in 1.1.0
public ArcCurveFit(int[] arcModes, 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()