gelatin-0.1.0.1: A graphics description language.

Safe HaskellNone
LanguageHaskell2010

Gelatin.Core.Utils

Synopsis

Documentation

pathHasPoint :: (Ord a, Fractional a, Unbox a) => Vector (V2 a) -> V2 a -> Bool Source #

Determine if a point lies within a polygon path using the even/odd rule. A point is inside a path if it has an odd number of intersections with the boundary (Jordan Curve theorem)