Class 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 represent Path.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 Detail

      • CubicCurveData

        public CubicCurveData()
      • CubicCurveData

        public CubicCurveData​(PointF controlPoint1,
                              PointF controlPoint2,
                              PointF vertex)
    • 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)
      • getVertex

        public PointF getVertex()