CV-0.3.5.3: OpenCV based machine vision library

Safe HaskellSafe-Infered

Utils.GeometryClass

Documentation

class Point2D a where

Associated Types

type ELP a :: *

Methods

pt :: a -> (ELP a, ELP a)

toPt :: (ELP a, ELP a) -> a

convertPt :: (Point2D a, Point2D b, ELP a ~ ELP b) => a -> b

class BoundingBox a where

Associated Types

type ELBB a :: *

Methods

bounds :: a -> Rectangle (ELBB a)

class FromBounds a where

Associated Types

type ELFB a :: *

Methods

fromBounds :: Rectangle (ELFB a) -> a

convertBounds :: (BoundingBox a, FromBounds b, ELBB a ~ ELFB b) => a -> b

class Line2D a where

Associated Types

type ELL a :: *

Methods

offsetAngle :: a -> (ELL a, Double)

class LineSegment a where

Associated Types

type ELS a :: *

Methods

startEnd :: a -> ((ELS a, ELS a), (ELS a, ELS a))