Copyright | [2013..2020] Trevor L. McDonell |
---|---|
License | BSD3 |
Maintainer | Trevor L. McDonell <trevor.mcdonell@gmail.com> |
Stability | experimental |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Point data type
Point creation
Convert a two-dimensional index into a point centered in a plane of the given width and height.
Testing points
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