line.vector()
Return the vector (point) of the line with length equal to length of the line.
This function effectively translates the line so that its start lies at 0,0.