RiskWeaver.Pip
newtype Polygon Source #
Constructors
Defined in RiskWeaver.Pip
Methods
showsPrec :: Int -> Polygon -> ShowS #
show :: Polygon -> String #
showList :: [Polygon] -> ShowS #
(==) :: Polygon -> Polygon -> Bool #
(/=) :: Polygon -> Polygon -> Bool #
newtype Point Source #
showsPrec :: Int -> Point -> ShowS #
show :: Point -> String #
showList :: [Point] -> ShowS #
(==) :: Point -> Point -> Bool #
(/=) :: Point -> Point -> Bool #
pointInPolygon :: Polygon -> Point -> Bool Source #
When given a polygon and a point, returns True if the point is inside the polygon.