| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Graphics.Gloss.Data.Point
Documentation
pointInBox :: Point -> Point -> Point -> Bool
Test whether a point lies within a rectangular box that is oriented on the x-y plane. The points P1-P2 are opposing points of the box, but need not be in a particular order.
P2 +-------+
| |
| + P0 |
| |
+-------+ P1