check (method)

check(self)[source]

assert that the line is correct (begin != end)

Parameters:self (Segment) – A Segment object
Returns:
Return type:None
Raises:PointSegmentError – The beginning point and the ending point of an Segment can’t be the same
exception PointSegmentError[source]

Bases: Exception