hgeometry-0.12.0.4: Geometric Algorithms, Data structures, and Data types.
Copyright (C) Frank Staals see the LICENSE file Frank Staals None Haskell2010

Data.Geometry.Ellipse

Description

Synopsis

# Documentation

newtype Ellipse r Source #

A type representing planar ellipses

Constructors

 Ellipse (Transformation 2 r)

#### Instances

Instances details
 Source # Instance detailsDefined in Data.Geometry.Ellipse Methodsfmap :: (a -> b) -> Ellipse a -> Ellipse b #(<\$) :: a -> Ellipse b -> Ellipse a # Source # Instance detailsDefined in Data.Geometry.Ellipse Methodsfold :: Monoid m => Ellipse m -> m #foldMap :: Monoid m => (a -> m) -> Ellipse a -> 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 # Source # Instance detailsDefined in Data.Geometry.Ellipse Methodstraverse :: 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 detailsDefined in Data.Geometry.Ellipse Methods(==) :: Ellipse r -> Ellipse r -> Bool #(/=) :: Ellipse r -> Ellipse r -> Bool # Show r => Show (Ellipse r) Source # Instance detailsDefined in Data.Geometry.Ellipse MethodsshowsPrec :: Int -> Ellipse r -> ShowS #show :: Ellipse r -> String #showList :: [Ellipse r] -> ShowS # Num r => IsTransformable (Ellipse r) Source # Instance detailsDefined in Data.Geometry.Ellipse MethodstransformBy :: Transformation (Dimension (Ellipse r)) (NumType (Ellipse r)) -> Ellipse r -> Ellipse r Source # type NumType (Ellipse r) Source # Instance detailsDefined in Data.Geometry.Ellipse type NumType (Ellipse r) = r type Dimension (Ellipse r) Source # Instance detailsDefined 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