hgeometry-0.1.0.0: Geometry types in Haskell

Safe HaskellNone

Data.Geometry.SetOperations

Synopsis

Documentation

class AreIntersectable g h a whereSource

A class to represent that a pair of geometry objects (both parameterized over a) can be intersected.

Methods

intersectionPoints :: g a -> h a -> [Point2' a]Source

Instances

(Ord a, Floating a) => AreIntersectable Circle2' Polyline2' a 
(Ord a, Floating a) => AreIntersectable Circle2' Line2' a 
(Ord a, Floating a) => AreIntersectable Circle2' LineSegment2' a

Intersection is symetrical instance AreIntersectable g h a => AreIntersectable h g a where intersectionPoints h g = intersectionPoints g h