dyna-gloss-0.1.0.0: FRP for gloss graphics and animation library
Safe HaskellNone
LanguageHaskell2010

Dyna.Gloss.Data.Point

Synopsis

Documentation

type Point = Vec Source #

type Path = [Point] Source #

pointInBox :: Point -> Point -> Point -> Bool Source #

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