lineTo

lineTo(Point2D.Float point) function

Adds line to the end of the path

Parameters

NameTypeDescription
pointPoint2D.FloatEnd point of the line

lineTo(float x, float y) function

Adds line to the end of the path

Parameters

NameTypeDescription
xfloatX coordinate of the end point of the line
yfloatY coordinate of the end point of the line

lineTo(Point2D.Float point, long index) function

Adds line to the specified place of the path

Parameters

NameTypeDescription
pointPoint2D.FloatEnd point
indexlongIndex of segment in PathData

Error

ErrorCondition
ArgumentOutOfRangeExceptionSegment index is out of PathData range

lineTo(float x, float y, long index) function

Adds line to the specified place of the path

Parameters

NameTypeDescription
xfloatX coordinate of the point
yfloatY coordinate of the point
indexlongIndex of segment in PathData

Error

ErrorCondition
ArgumentOutOfRangeExceptionSegment index is out of PathData range