TAgg2D.CubicCurveTo(xCtrl2, yCtrl2, xTo, yTo)
Description
Adds a SCUBIC_TO_ABS path command to the current subpath. A new Cubic Bézier curve starts at the Current Point position, bends by definition of calculated control points 1 & defined control point 2 and ends at defined coordinates. The first control point is calculated as the reflection of the second control point on the previous command relative to the Current Point. If there is no previous command or if the previous command is not a CubicCurve, the missing control point is the same as the Current Point. Current Point is finally changed to be at the end of a new Bézier curve segment.
This Cubic Bézier curve definition is compliant with SVG specification.
Parameters
xCtrl2: double
X coordinate of CubicCurve control point 2 [in subpixels].
yCtrl2: double
Y coordinate of CubicCurve control point 2 [in subpixels].
xTo: double
X coordinate of end of a new CubicCurve segment [in subpixels].
yTo: double
Y coordinate of end of a new CubicCurve segment [in subpixels].
Example
See the Path Example page.


