segment line AB, point P, where each one is an array([x, y])
Compute the distance of a point to the Segment
self (Segment) – A Segment object
Z (complex) – Complex coordinate of the point
D – distance of a point to the Segment
float