Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Position = Position {}
- positionDelta :: Position -> Position -> (Double, Double)
- positionDistance :: Position -> Position -> Double
- positionDistanceSquared :: Position -> Position -> Double
- positionCloseEnough :: Position -> Position -> Double -> Bool
- data Circle = Circle {}
- pointInCircle :: Position -> Circle -> Bool
- data Size = Size {}
- data BBox = BBox Double Double Double Double
- bbX :: BBox -> Double
- bbY :: BBox -> Double
- bbWidth :: BBox -> Double
- bbSetWidth :: BBox -> Double -> BBox
- bbHeight :: BBox -> Double
- bbPosition :: BBox -> Position
- bbSize :: BBox -> Size
- bbToRect :: BBox -> Rectangle
- bbFromRect :: Rectangle -> BBox
- bbCenter :: BBox -> Position
- bbLeft :: BBox -> Double
- bbXCenter :: BBox -> Double
- bbRight :: BBox -> Double
- bbTop :: BBox -> Double
- bbYCenter :: BBox -> Double
- bbBottom :: BBox -> Double
- bbMerge :: BBox -> BBox -> BBox
- bbMergeList :: [BBox] -> BBox
- pointInBB :: Position -> BBox -> Bool
- class Widen a where
- class Translate a where
Documentation
positionDistance :: Position -> Position -> Double Source
positionDistanceSquared :: Position -> Position -> Double Source
pointInCircle :: Position -> Circle -> Bool Source
BBox x y width height; (x, y) is the top left corner
bbSetWidth :: BBox -> Double -> BBox Source
bbPosition :: BBox -> Position Source
bbFromRect :: Rectangle -> BBox Source
bbMergeList :: [BBox] -> BBox Source