-
@RestrictTo(value = LIBRARY) public class CubicCurveData
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 represent cubicTo. Most path operations are centered around a vertex and its in control point and out control point like this: | outCp | / | | | v | / | inCp --------------------------
-
-
Field Summary
Fields Modifier and Type Field Description private final PointFcontrolPoint1private final PointFcontrolPoint2private final PointFvertex
-
Constructor Summary
Constructors Constructor Description CubicCurveData()CubicCurveData(PointF controlPoint1, PointF controlPoint2, PointF vertex)
-
Method Summary
Modifier and Type Method Description PointFgetControlPoint1()voidsetControlPoint1(float x, float y)PointFgetControlPoint2()voidsetControlPoint2(float x, float y)PointFgetVertex()voidsetVertex(float x, float y)voidsetFrom(CubicCurveData curveData)StringtoString()-
-
Method Detail
-
getControlPoint1
PointF getControlPoint1()
-
setControlPoint1
void setControlPoint1(float x, float y)
-
getControlPoint2
PointF getControlPoint2()
-
setControlPoint2
void setControlPoint2(float x, float y)
-
setVertex
void setVertex(float x, float y)
-
setFrom
void setFrom(CubicCurveData curveData)
-
-
-
-