Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Box in a row
- data Box = Box {}
- type BoxRow = Int
- type BoxCol = Int
- type BoxPosition = (BoxRow, BoxCol)
- type BoxPositions = [BoxPosition]
- makeBox :: Double -> Double -> Int -> Int -> (Double, Double) -> Box
- makeVectors :: Box -> [(Double, Double)]
- fromBox :: Box -> BoxPosition
- fromBoxes :: [Box] -> BoxPositions
Documentation
A grid box with position (x,y) at row and col with size.
type BoxPosition = (BoxRow, BoxCol) Source #
Box position
type BoxPositions = [BoxPosition] Source #
Box positions
makeBox :: Double -> Double -> Int -> Int -> (Double, Double) -> Box Source #
Create a box with position (x,y) at row and col with given size.
fromBox :: Box -> BoxPosition Source #
Convert from Box to (row, col)
fromBoxes :: [Box] -> BoxPositions Source #
Convert all boxes in list from Box to (row, col)