To create a Line vector, select the Line tool and drag from the first endpoint to the other endpoint:
The Line vector has handles at either end that move the endpoints independently.
Holding the Shift key down while dragging a line endpoint node constrains the line to 45-degree angles.
Like all vectors, you can also drag outside a Line vector while editing it to move the entire vector.