cubicBezierTo

cubicBezierTo(Point2D.Float point1, Point2D.Float point2, Point2D.Float point3) function

Adds cubic Bezier curve at the end the path

Parameters

NameTypeDescription
point1Point2D.FloatFirst direction point
point2Point2D.FloatSecond direction point
point3Point2D.FloatEnd point

cubicBezierTo(float x1, float y1, float x2, float y2, float x3, float y3) function

Adds cubic Bezier curve at the end the path

Parameters

NameTypeDescription
x1floatX coordinate of first direction point
y1floatY coordinate of first direction point
x2floatX coordinate of second direction point
y2floatY coordinate of second direction point
x3floatX coordinate of end point
y3floatY coordinate of end point

cubicBezierTo(Point2D.Float point1, Point2D.Float point2, Point2D.Float point3, long index) function

Adds cubic Bezier curve to the specified place of the path

Parameters

NameTypeDescription
point1Point2D.FloatFirst direction point
point2Point2D.FloatSecond direction point
point3Point2D.FloatEnd point
indexlongIndex of segment in PathData

Error

ErrorCondition
ArgumentOutOfRangeExceptionSegment index is out of PathData range

cubicBezierTo(float x1, float y1, float x2, float y2, float x3, float y3, long index) function

Adds cubic Bezier curve to the specified place of the path

Parameters

NameTypeDescription
x1floatX coordinate of first direction point
y1floatY coordinate of first direction point
x2floatX coordinate of second direction point
y2floatY coordinate of second direction point
x3floatX coordinate of end point
y3floatY coordinate of end point
indexlongIndex of segment in PathData

Error

ErrorCondition
ArgumentOutOfRangeExceptionSegment index is out of PathData range