wumpus-basic-0.4.0: Common drawing utilities built on wumpus-core.Source codeContentsIndex
Wumpus.Basic.Utils.Intersection
PortabilityGHC with TypeFamilies and more
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>
Description
Intersection of line to line and line to plane
Synopsis
data LineSegment u = LS (Point2 u) (Point2 u)
data PointSlope u
pointSlope :: Fractional u => Point2 u -> Radian -> PointSlope u
data LineEqn u
lineEqn :: Num u => Point2 u -> Point2 u -> LineEqn u
toLineEqn :: Num u => PointSlope u -> LineEqn u
findIntersect :: (Floating u, Real u, Ord u) => Point2 u -> Radian -> [LineSegment u] -> Maybe (Point2 u)
intersection :: (Fractional u, Ord u) => LineSegment u -> LineEqn u -> Maybe (Point2 u)
rectangleLines :: Num u => Point2 u -> u -> u -> [LineSegment u]
Documentation
data LineSegment u Source
Constructors
LS (Point2 u) (Point2 u)
show/hide Instances
data PointSlope u Source
show/hide Instances
Eq u => Eq (PointSlope u)
Show u => Show (PointSlope u)
pointSlope :: Fractional u => Point2 u -> Radian -> PointSlope uSource
data LineEqn u Source
Line in equational form, i.e. Ax + By + C = 0.
show/hide Instances
Eq u => Eq (LineEqn u)
Show u => Show (LineEqn u)
lineEqn :: Num u => Point2 u -> Point2 u -> LineEqn uSource
toLineEqn :: Num u => PointSlope u -> LineEqn uSource
findIntersect :: (Floating u, Real u, Ord u) => Point2 u -> Radian -> [LineSegment u] -> Maybe (Point2 u)Source
intersection :: (Fractional u, Ord u) => LineSegment u -> LineEqn u -> Maybe (Point2 u)Source
rectangleLines :: Num u => Point2 u -> u -> u -> [LineSegment u]Source
Produced by Haddock version 2.6.1