wumpus-basic-0.14.0: Common drawing utilities built on wumpus-core.

PortabilityGHC
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>

Wumpus.Basic.Kernel.Geometry.Intersection

Description

Intersection of line to line and line to plane

** - WARNING ** - half baked.

Synopsis

Documentation

data LineSegment u Source

Constructors

LS (Point2 u) (Point2 u) 

Instances

Eq u => Eq (LineSegment u) 
Ord u => Ord (LineSegment u) 
Show u => Show (LineSegment u) 

data PointSlope u Source

Instances

Eq u => Eq (PointSlope u) 
Show u => Show (PointSlope u) 

data LineEqn u Source

Line in equational form, i.e. Ax + By + C = 0.

Instances

Eq u => Eq (LineEqn u) 
Show u => Show (LineEqn u) 

lineEqn :: Num u => Point2 u -> Point2 u -> LineEqn uSource

rectangleLines :: Num u => Point2 u -> u -> u -> [LineSegment u]Source

langle :: (Floating u, Real u) => Point2 u -> Point2 u -> RadianSource

Calculate the counter-clockwise angle between two points and the x-axis.