set To Segment
Sets this line to the specified segment. This line has its origin at the first endpoint and its direction extending from the first endpoint to the second.
Return
this line, set to the specified segment
Parameters
point A
the segment's first endpoint
point B
the segment's second endpoint