gridbox-0.2.0.0: A grid box model

Safe HaskellSafe
LanguageHaskell2010

GridBox.Coordinate

Description

Coordinate

Synopsis

Documentation

fromBox :: Box -> [(Double, Double)] Source #

Create a List of (x,y) coordinates with given size.

fromBoxes :: [Box] -> [[(Double, Double)]] Source #

Convert all boxes in list from Box to (x, y) coordinates

getX :: Int -> Double -> Double -> Double Source #

Get the x-position for given row, size and x-offset.

getY :: Int -> Double -> Double -> Double Source #

Get the y-position for given col, size and y-offset.

topX :: Double -> Double -> Double Source #

Get the given position with x-offset.

topY :: Double -> Double -> Double Source #

Get the given position with y-offset.

transform :: (Double, Double) -> Double -> Double -> Double -> (Double, Double) -> (Double, Double) Source #

Transform given coordinates with position (x, y) scale, x- and y-offset.