geom2d-0.1.0.1: package for geometry in euklidean 2d space

Safe HaskellNone
LanguageHaskell2010

Geom2d.Shape

Synopsis

Documentation

data Shape p a Source

Shape describes geometric shapes in the euklidean plain.

Instances

(Rotation p, Point p) => Rotation (Shape p) Source 
(Floating a, Eq (p a), Num (p a), Ord a, Point p, Distance p p) => Intersect (p a) (Shape p a) Source 
(Eq a, Eq (p a)) => Eq (Shape p a) Source 
(Read a, Read (p a)) => Read (Shape p a) Source 
(Show a, Show (p a)) => Show (Shape p a) Source 
(Floating a, Eq (p a), Num (p a), Ord a, Point p, Distance p p) => Intersect (Shape p a) (p a) Source 
(Ord a, Distance p p, Eq (p a), Num (p a), Point p, RealFloat a) => Intersect (Shape p a) (Shape p a) Source 

circle :: Num a => p a -> a -> Shape p a Source

rectangle :: (Translate p, Eq a, RealFloat a, Point p, Rotation p) => p a -> a -> a -> Maybe (Shape p a) Source