comp_length (method)

comp_length(self)[source]

Compute the length of the line

Parameters:self (Segment) – A Segment object
Returns:length – lenght of the line [m]
Return type:float
Raises:PointSegmentError – Call Segment.check()