Creates a line segment from two points or four coordinates. Throws TypeError for any other number of arguments.
Start point.
End point.
Start point X coordinate.
Start point Y coordinate.
End point X coordinate.
End point Y coordinate.
Creates a line segment from two points or four coordinates. Throws TypeError for any other number of arguments.