Safe Haskell | None |
---|---|
Language | Haskell2010 |
- pathHasPoint :: (Ord a, Fractional a, Unbox a) => Vector (V2 a) -> V2 a -> Bool
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)