Package com.airbnb.lottie.model
Class CubicCurveData
- java.lang.Object
-
- com.airbnb.lottie.model.CubicCurveData
-
public class CubicCurveData extends Object
One cubic path operation. CubicCurveData is structured such that it is easy to iterate through it and build a path. However, it is modeled differently than most path operations. CubicCurveData | - vertex | / | cp1 cp2 | / | | | / -------------------------- When incrementally building a path, it will already have a "current point" so that is not captured in this data structure. The control points here representPath.cubicTo(float, float, float, float, float, float). Most path operations are centered around a vertex and its in control point and out control point like this: | outCp | / | | | v | / | inCp --------------------------
-
-
Constructor Summary
Constructors Constructor Description CubicCurveData()CubicCurveData(PointF controlPoint1, PointF controlPoint2, PointF vertex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PointFgetControlPoint1()PointFgetControlPoint2()PointFgetVertex()voidsetControlPoint1(float x, float y)voidsetControlPoint2(float x, float y)voidsetFrom(CubicCurveData curveData)voidsetVertex(float x, float y)StringtoString()
-
-
-
Method Detail
-
setControlPoint1
public void setControlPoint1(float x, float y)
-
getControlPoint1
public PointF getControlPoint1()
-
setControlPoint2
public void setControlPoint2(float x, float y)
-
getControlPoint2
public PointF getControlPoint2()
-
setVertex
public void setVertex(float x, float y)
-
setFrom
public void setFrom(CubicCurveData curveData)
-
getVertex
public PointF getVertex()
-
-