Safe Haskell | Safe-Infered |
---|
- 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, bbHeight, bbWidth, bbY :: BBox -> Double
- bbSetWidth :: BBox -> Double -> BBox
- bbPosition :: BBox -> Position
- bbSize :: BBox -> Size
- bbToRect :: BBox -> Rectangle
- bbFromRect :: Rectangle -> BBox
- bbCenter :: BBox -> Position
- bbLeft, bbRight, bbXCenter :: BBox -> Double
- bbTop, bbBottom, bbYCenter :: 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 -> DoubleSource
pointInCircle :: Position -> Circle -> BoolSource
BBox x y width height; (x, y) is the top left corner
bbSetWidth :: BBox -> Double -> BBoxSource
bbPosition :: BBox -> PositionSource
bbFromRect :: Rectangle -> BBoxSource
bbMergeList :: [BBox] -> BBoxSource
A Translate is a thing that can be repositioned by delta x and delta y