Safe Haskell | Safe-Inferred |
---|
Utils.GeometryClass
- class Point2D a where
- ipt :: (Point2D a, RealFrac (ELP a)) => a -> (Int, Int)
- convertPt :: (Point2D a, Point2D b, ELP a ~ ELP b) => a -> b
- class BoundingBox a where
- class FromBounds a where
- type ELFB a :: *
- fromBounds :: Rectangle (ELFB a) -> a
- convertBounds :: (BoundingBox a, FromBounds b, ELBB a ~ ELFB b) => a -> b
- class Line2D a where
- type ELL a :: *
- offsetAngle :: a -> (ELL a, Double)
- class LineSegment a where
- class Sized a where
- biggerThan :: (Sized a, Sized b, Size a ~ (Int, Int), Size b ~ Size a) => a -> b -> Bool
Documentation
class BoundingBox a whereSource
Instances
convertBounds :: (BoundingBox a, FromBounds b, ELBB a ~ ELFB b) => a -> bSource
Methods
offsetAngle :: a -> (ELL a, Double)Source
class LineSegment a whereSource
Typeclass for elements with a size, such as images and matrices.