Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Point
Synopsis
- type Pt = (Double, Double)
- dot :: Pt -> Pt -> Double
- sub :: Pt -> Pt -> Pt
- from :: Pt -> Pt -> Pt
- add :: Pt -> Pt -> Pt
- mul :: Double -> Pt -> Pt
- neg :: Pt -> Pt
- cross2D :: Pt -> Pt -> Double
- trip :: Pt -> Pt -> Pt -> Pt
- perp :: Pt -> Pt -> Pt
- isSameDirection :: Pt -> Pt -> Bool
- getDirectionVector :: Pt -> Pt -> Pt