Safe Haskell | None |
---|---|
Language | Haskell2010 |
A type representing a line.
Synopsis
- data Line
- pattern Line :: Point -> Point -> Line
- start :: Line -> Point
- end :: Line -> Point
- mkLine :: Float -> Float -> Float -> Float -> Line
- asTuple :: Line -> (Float, Float, Float, Float)
- lineLength :: Line -> Float
- slope :: Line -> Either String Float
- areParallel :: Line -> Line -> Float -> Bool
- containsPoint :: Point -> Line -> Bool
- overlappingSegments :: Line -> Line -> Bool
Documentation
lineLength :: Line -> Float Source #
Calculate the length of a line.