Exercise 8.5


data Region = ...
            | HalfPlane Coordinate Coordinate
            ...

(HalfPlane p1 p2) `containsR` p = p `isLeftOf` (p1,p2)

Leave a Reply

Your email address will not be published. Required fields are marked *