Interface IControlPointCurve

  • All Known Implementing Classes:
    CurveTo, QuadraticCurveTo, QuadraticSmoothCurveTo, SmoothSCurveTo

    public interface IControlPointCurve
    Interface that describes a Path object which is defined by control points. In practice this only means Bézier curves, both quadratic (one control point) and cubic (two control points). This interface is relevant in the context of Smooth (Shorthand) Bézier curves, which omit a control point from their arguments list because it can be calculated from the last control point of the previous curve. Therefore, the last control point of a curve must be exposed to the PathSvgNodeRenderer algorithm.
    • Method Detail

      • getLastControlPoint

        Point getLastControlPoint()
        Returns coordinates of the last control point (the one closest to the ending point) in the Bezier curve, in SVG space coordinates
        Returns:
        coordinates of the last control point in SVG space coordinates