| Copyright | (C) Frank Staals |
|---|---|
| License | see the LICENSE file |
| Maintainer | Frank Staals |
| Safe Haskell | None |
| Language | GHC2024 |
HGeometry.Boundary
Description
Synopsis
- newtype Boundary g = Boundary g
- _Boundary :: forall g h p f. (Profunctor p, Functor f) => p (Boundary g) (f (Boundary h)) -> p g (f h)
- data PointLocationResult
- = Inside
- | OnBoundary
- | Outside
- data PointLocationResultWith edge
- = StrictlyInside
- | OnBoundaryEdge !edge
- | StrictlyOutside
- asPointLocationResult :: PointLocationResultWith edge -> PointLocationResult
Documentation
The boundary of a geometric object.
Constructors
| Boundary g |
Instances
_Boundary :: forall g h p f. (Profunctor p, Functor f) => p (Boundary g) (f (Boundary h)) -> p g (f h) Source #
Iso for converting between things with a boundary and without its boundary
data PointLocationResult Source #
Result of a query that asks if something is Inside a g, *on* the boundary of the g, or outside.
Constructors
| Inside | |
| OnBoundary | |
| Outside |
Instances
| Read PointLocationResult Source # | |
Defined in HGeometry.Boundary | |
| Show PointLocationResult Source # | |
Defined in HGeometry.Boundary | |
| Eq PointLocationResult Source # | |
Defined in HGeometry.Boundary Methods (==) :: PointLocationResult -> PointLocationResult -> Bool Source # (/=) :: PointLocationResult -> PointLocationResult -> Bool Source # | |
data PointLocationResultWith edge Source #
Result of a query that asks if something is Inside a g, *on* the boundary of the g, or outside. This type allows us to provide some sort of proof for the claim.
Constructors
| StrictlyInside | |
| OnBoundaryEdge !edge | |
| StrictlyOutside |
Instances
| Functor PointLocationResultWith Source # | |
Defined in HGeometry.Boundary Methods fmap :: (a -> b) -> PointLocationResultWith a -> PointLocationResultWith b Source # (<$) :: a -> PointLocationResultWith b -> PointLocationResultWith a Source # | |
| Read edge => Read (PointLocationResultWith edge) Source # | |
Defined in HGeometry.Boundary Methods readsPrec :: Int -> ReadS (PointLocationResultWith edge) Source # readList :: ReadS [PointLocationResultWith edge] Source # readPrec :: ReadPrec (PointLocationResultWith edge) Source # readListPrec :: ReadPrec [PointLocationResultWith edge] Source # | |
| Show edge => Show (PointLocationResultWith edge) Source # | |
Defined in HGeometry.Boundary | |
| Eq edge => Eq (PointLocationResultWith edge) Source # | |
Defined in HGeometry.Boundary Methods (==) :: PointLocationResultWith edge -> PointLocationResultWith edge -> Bool Source # (/=) :: PointLocationResultWith edge -> PointLocationResultWith edge -> Bool Source # | |
asPointLocationResult :: PointLocationResultWith edge -> PointLocationResult Source #
Forget on which edge the point was.