addLine(to:)
Appends a straight line segment from the current point to the specified point.
Declaration
func addLine(to point: CGPoint)Parameters
- point:
The location, in user space coordinates, for the end of the new line segment.
Discussion
After adding the line segment, the current point is set to the endpoint of the line segment.