check (method)

@package Methods.Geometry.Segment.check Check Segment method @date Created on Fri Dec 05 09:55:35 2014 @copyright (C) 2014-2015 EOMYS ENGINEERING. @author pierre_b

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