License | MIT |
---|---|
Maintainer | Jonatan H Sundqvist |
Stability | experimental|stable |
Portability | POSIX (not sure) |
Safe Haskell | None |
Language | Haskell2010 |
Cartesian.Plane.BoundingBox
Description
- module Cartesian.Plane.Types
- fromCorners :: RealFloat f => Complex f -> Complex f -> BoundingBox f
- fromCornerAndSize :: RealFloat f => Complex f -> Complex f -> BoundingBox f
- fromSides :: RealFloat f => f -> f -> f -> f -> BoundingBox f
- intersect :: (RealFloat f, Ord f) => BoundingBox f -> BoundingBox f -> Maybe (BoundingBox f)
- module Cartesian.Plane.BoundingBox.Lenses
Documentation
module Cartesian.Plane.Types
fromCorners :: RealFloat f => Complex f -> Complex f -> BoundingBox f Source
TODO: Better name (?) TODO: Don't make assumptions about WHICH corners they are (✓)
fromCornerAndSize :: RealFloat f => Complex f -> Complex f -> BoundingBox f Source
Creates a bounding box from a topleft and size vector.
fromSides :: RealFloat f => f -> f -> f -> f -> BoundingBox f Source
Top Left Bottom Right
intersect :: (RealFloat f, Ord f) => BoundingBox f -> BoundingBox f -> Maybe (BoundingBox f) Source