Check is a point defined by its complex coordinate is on the segment
self (Segment) – A Segment object
Z (complex) – Complex coordinate of the point
is_on_line – True if the point is on the segment
bool