Merge VectorTypes.hs into Vector.hs

This commit is contained in:
2014-12-03 21:41:00 +01:00
parent 9d6af63b46
commit 3c1a34e4af
10 changed files with 15 additions and 27 deletions

View File

@@ -2,7 +2,6 @@
module Algebra.Vector where
import Algebra.VectorTypes
import Control.Applicative
import Data.List (sortBy)
import Diagrams.TwoD.Types
@@ -11,6 +10,19 @@ import GHC.Float
import MyPrelude
type Vec = R2
type PT = P2
type Coord = (Double, Double)
type Segment = (PT, PT)
type Square = (Coord, Coord)
data Alignment = CW
| CCW
| CL
deriving (Eq)
-- |Checks whether the Point is in a given dimension.
inRange :: Square -- ^ the square: ((xmin, xmax), (ymin, ymax))
-> PT -- ^ Coordinate

View File

@@ -1,18 +0,0 @@
{-# OPTIONS_HADDOCK ignore-exports #-}
module Algebra.VectorTypes where
import Diagrams.TwoD.Types
type Vec = R2
type PT = P2
type Coord = (Double, Double)
type Segment = (PT, PT)
type Square = (Coord, Coord)
data Alignment = CW
| CCW
| CL
deriving (Eq)