Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Row of a grid
- type Row = [Box]
- getBoxPositionX :: Int -> Double -> Double -> Double
- getBoxPositionY :: Int -> Double -> Double -> Double
- createBox :: (Double, Double) -> Double -> Double -> Int -> Int -> Box
- makeRow :: (Double, Double) -> Double -> Double -> [Int] -> Int -> Row
- topX :: Double -> Double -> Double
- topY :: Double -> Double -> Double
Documentation
getBoxPositionX :: Int -> Double -> Double -> Double Source #
Get the x-position for given row, size and x-offset.
getBoxPositionY :: Int -> Double -> Double -> Double Source #
Get the y-position for given col, size and y-offset.
createBox :: (Double, Double) -> Double -> Double -> Int -> Int -> Box Source #
Create a box with given row, col, size, x- and y-offset.