Problem 5. A polygon is represented by a list of its vertices, giving us the following data definition:
;;; A Polygon is one of ;;; - empty ;;; - (cons Posn Polygon)
where @noligsPosn is as defined in the course textbook. For example, the triangle
|
(cons (make-posn 7 5)
(cons (make-posn 10 -4)
(cons (make-posn -6 -6) empty)))
Design the function @noligspolygon-first-quadrant?, which takes a polygon and returns true if it lies entirely in the first quadrant (x> 0 and y> 0) of the plane.