• How to determine whether a point lies above or below a line?
  • Adding the points to the list of the vertices of the new polygon segment.