public class

ViewSpline.PathRotate

extends ViewSpline

 java.lang.Object

androidx.constraintlayout.core.motion.utils.SplineSet

androidx.constraintlayout.motion.utils.ViewSpline

↳androidx.constraintlayout.motion.utils.ViewSpline.PathRotate

Summary

Fields
from SplineSetmCurveFit, mTimePoints[], mValues[]
Constructors
publicPathRotate()

Methods
public voidsetPathRotate(View view, float t, double dx, double dy)

Use to set the rotation relative to the path

public abstract voidsetProperty(View view, float t)

the main interface to setting a view property

from ViewSplinemakeCustomSpline, makeSpline
from SplineSetget, getCurveFit, getSlope, makeCustomSpline, makeCustomSplineSet, makeSpline, setPoint, setProperty, setType, setup, toString
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructors

public PathRotate()

Methods

public abstract void setProperty(View view, float t)

the main interface to setting a view property

Parameters:

view: the view
t: the point of time

public void setPathRotate(View view, float t, double dx, double dy)

Use to set the rotation relative to the path

Parameters:

view: the view to set
t: the time point
dx: the path velocity in x
dy: the path velocity in y