License | MIT |
---|---|
Maintainer | Jonatan H Sundqvist |
Stability | experimental|stable |
Portability | POSIX (not sure) |
Safe Haskell | None |
Language | Haskell2010 |
Cartesian.Plane.BoundingBox.Lenses
Description
- makeBoundingBoxSideLens :: RealFloat f => (BoundingBox f -> f) -> (BoundingBox f -> f -> (f, f, f, f)) -> Lens (BoundingBox f) (BoundingBox f) f f
- centre :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) (Complex f) (Complex f)
- size :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) (Complex f) (Complex f)
- left :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) f f
- right :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) f f
- top :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) f f
- bottom :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) f f
- leftpad :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) f f
- rightpad :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) f f
- toppad :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) f f
- bottompad :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) f f
Documentation
makeBoundingBoxSideLens :: RealFloat f => (BoundingBox f -> f) -> (BoundingBox f -> f -> (f, f, f, f)) -> Lens (BoundingBox f) (BoundingBox f) f f Source
TODO: Make sure invariants remain true (eg. left < right) TODO: Make coordinate-system independent (eg. direction of axes)
centre :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) (Complex f) (Complex f) Source
size :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) (Complex f) (Complex f) Source
left :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) f f Source
right :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) f f Source
top :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) f f Source
bottom :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) f f Source
leftpad :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) f f Source
rightpad :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) f f Source
toppad :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) f f Source
bottompad :: RealFloat f => Lens (BoundingBox f) (BoundingBox f) f f Source