Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Boundary g = Boundary g
- data PointLocationResult
- = Inside
- | OnBoundary
- | Outside
Documentation
The boundary of a geometric object.
Boundary g |
Instances
Functor Boundary Source # | |
Foldable Boundary Source # | |
Defined in Data.Geometry.Boundary fold :: Monoid m => Boundary m -> m # foldMap :: Monoid m => (a -> m) -> Boundary a -> m # foldr :: (a -> b -> b) -> b -> Boundary a -> b # foldr' :: (a -> b -> b) -> b -> Boundary a -> b # foldl :: (b -> a -> b) -> b -> Boundary a -> b # foldl' :: (b -> a -> b) -> b -> Boundary a -> b # foldr1 :: (a -> a -> a) -> Boundary a -> a # foldl1 :: (a -> a -> a) -> Boundary a -> a # elem :: Eq a => a -> Boundary a -> Bool # maximum :: Ord a => Boundary a -> a # minimum :: Ord a => Boundary a -> a # | |
Traversable Boundary Source # | |
Eq g => Eq (Boundary g) Source # | |
Ord g => Ord (Boundary g) Source # | |
Read g => Read (Boundary g) Source # | |
Show g => Show (Boundary g) Source # | |
IsTransformable g => IsTransformable (Boundary g) Source # | |
Defined in Data.Geometry.Boundary transformBy :: Transformation (Dimension (Boundary g)) (NumType (Boundary g)) -> Boundary g -> Boundary g Source # | |
(Ord r, Fractional r) => IsIntersectableWith (Line 2 r) (Boundary (Rectangle p r)) | |
Defined in Data.Geometry.Line | |
(Ord r, Floating r) => IsIntersectableWith (Line 2 r) (Circle p r) | |
(Ord r, Floating r) => IsIntersectableWith (LineSegment 2 p r) (Circle q r) | |
Defined in Data.Geometry.Ball intersect :: LineSegment 2 p r -> Circle q r -> Intersection (LineSegment 2 p r) (Circle q r) intersects :: LineSegment 2 p r -> Circle q r -> Bool nonEmptyIntersection :: proxy (LineSegment 2 p r) -> proxy (Circle q r) -> Intersection (LineSegment 2 p r) (Circle q r) -> Bool | |
type NumType (Boundary g) Source # | |
Defined in Data.Geometry.Boundary | |
type Dimension (Boundary g) Source # | |
Defined in Data.Geometry.Boundary | |
type IntersectionOf (Line 2 r) (Boundary (Rectangle p r)) | |
Defined in Data.Geometry.Line | |
type IntersectionOf (Line 2 r) (Boundary (Polygon t p r)) | |
Defined in Data.Geometry.Polygon | |
type IntersectionOf (Line 2 r) (Circle p r) | No intersection, one touching point, or two points |
type IntersectionOf (LineSegment 2 p r) (Circle q r) | A line segment may not intersect a circle, touch it, or intersect it properly in one or two points. |
Defined in Data.Geometry.Ball |
data PointLocationResult Source #
Result of a query that asks if something is Inside a g, *on* the boundary of the g, or outside.
Instances
Eq PointLocationResult Source # | |
Defined in Data.Geometry.Boundary (==) :: PointLocationResult -> PointLocationResult -> Bool # (/=) :: PointLocationResult -> PointLocationResult -> Bool # | |
Read PointLocationResult Source # | |
Defined in Data.Geometry.Boundary | |
Show PointLocationResult Source # | |
Defined in Data.Geometry.Boundary showsPrec :: Int -> PointLocationResult -> ShowS # show :: PointLocationResult -> String # showList :: [PointLocationResult] -> ShowS # |