add checking if segment contains a point
amendment in segments_intersects
add method for getting intersection point of two segments
get points of intersection of polygon with section lines