def __init__(self, endpoint_a, endpoint_b):
self.endpoint_a = endpoint_a<EOL>self.endpoint_b = endpoint_b<EOL>
Init a line segments with endpoint_a and endpoint_b

:param endpoint_a: one endpoint of line
:type endpoint_a: Location
:param endpoint_b: another endpoint of line
:type endpoint_b: Location