# intersect_line (method)¶

intersect_line(self, Z1, Z2)[source]

Return a list (0, 1 or 2 complex) of coordinates of the intersection of the segment with a line defined by two complex

Parameters

self (Segment) – A Segment object

Returns

Z_list – Complex coordinates of the intersection (if any, return [begin, end] if the segment is part of the line)

Return type

list