lineSegment
Draws a line segment between two points in a 2D space.
Parameters
x0
The x-coordinate of the starting point of the line segment.
y0
The y-coordinate of the starting point of the line segment.
x1
The x-coordinate of the ending point of the line segment.
y1
The y-coordinate of the ending point of the line segment.
Draws a line segment using the specified LineSegment
.
Parameters
lineSegment
The LineSegment
object containing the start and end points of the line segment.
Draws a line segment from start to end using 2d coordinates