TAgg2D.CubicCurveRel(dxCtrl2, dyCtrl2, dxTo, dyTo)
Description
Adds a SCUBIC_TO_REL 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 & Current Point plus defined delta 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
dxCtrl2: double
Addition (delta +/-) to the Current Point for control point 2 on X axis [in subpixels].
dyCtrl2: double
Addition (delta +/-) to the Current Point for control point 2 on Y axis [in subpixels].
dxTo: double
Change (delta +/-) to the Current Point coordinate on X axis [in subpixels].
dyTo: double
Change (delta +/-) to the Current Point coordinate on Y axis [in subpixels].
Example
See the Path Example page.


