hgeometry-0.11.0.0: Geometric Algorithms, Data structures, and Data types.

Safe HaskellNone
LanguageHaskell2010

Data.Geometry.Ellipse

Synopsis

Documentation

newtype Ellipse r Source #

A typre representing planar ellipses

Constructors

Ellipse (Transformation 2 r) 
Instances
Functor Ellipse Source # 
Instance details

Defined in Data.Geometry.Ellipse

Methods

fmap :: (a -> b) -> Ellipse a -> Ellipse b #

(<$) :: a -> Ellipse b -> Ellipse a #

Foldable Ellipse Source # 
Instance details

Defined in Data.Geometry.Ellipse

Methods

fold :: Monoid m => Ellipse m -> m #

foldMap :: Monoid m => (a -> m) -> Ellipse a -> m #

foldr :: (a -> b -> b) -> b -> Ellipse a -> b #

foldr' :: (a -> b -> b) -> b -> Ellipse a -> b #

foldl :: (b -> a -> b) -> b -> Ellipse a -> b #

foldl' :: (b -> a -> b) -> b -> Ellipse a -> b #

foldr1 :: (a -> a -> a) -> Ellipse a -> a #

foldl1 :: (a -> a -> a) -> Ellipse a -> a #

toList :: Ellipse a -> [a] #

null :: Ellipse a -> Bool #

length :: Ellipse a -> Int #

elem :: Eq a => a -> Ellipse a -> Bool #

maximum :: Ord a => Ellipse a -> a #

minimum :: Ord a => Ellipse a -> a #

sum :: Num a => Ellipse a -> a #

product :: Num a => Ellipse a -> a #

Traversable Ellipse Source # 
Instance details

Defined in Data.Geometry.Ellipse

Methods

traverse :: Applicative f => (a -> f b) -> Ellipse a -> f (Ellipse b) #

sequenceA :: Applicative f => Ellipse (f a) -> f (Ellipse a) #

mapM :: Monad m => (a -> m b) -> Ellipse a -> m (Ellipse b) #

sequence :: Monad m => Ellipse (m a) -> m (Ellipse a) #

Eq r => Eq (Ellipse r) Source # 
Instance details

Defined in Data.Geometry.Ellipse

Methods

(==) :: Ellipse r -> Ellipse r -> Bool #

(/=) :: Ellipse r -> Ellipse r -> Bool #

Show r => Show (Ellipse r) Source # 
Instance details

Defined in Data.Geometry.Ellipse

Methods

showsPrec :: Int -> Ellipse r -> ShowS #

show :: Ellipse r -> String #

showList :: [Ellipse r] -> ShowS #

Num r => IsTransformable (Ellipse r) Source # 
Instance details

Defined in Data.Geometry.Ellipse

type NumType (Ellipse r) Source # 
Instance details

Defined in Data.Geometry.Ellipse

type NumType (Ellipse r) = r
type Dimension (Ellipse r) Source # 
Instance details

Defined in Data.Geometry.Ellipse

type Dimension (Ellipse r) = 2

ellipseMatrix :: Iso (Ellipse r) (Ellipse s) (Matrix 3 3 r) (Matrix 3 3 s) Source #

unitEllipse :: Num r => Ellipse r Source #

Ellipse representing the unit circle

ellipseToCircle :: (Num r, Eq r) => Ellipse r -> Maybe (Circle () r) Source #

_EllipseCircle :: (Floating r, Eq r) => Prism' (Ellipse r) (Circle () r) Source #

Converting between ellipses and circles