Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Ellipse r = Ellipse (Transformation 2 r)
- affineTransformation :: forall r r. Iso (Ellipse r) (Ellipse r) (Transformation 2 r) (Transformation 2 r)
- ellipseMatrix :: Iso (Ellipse r) (Ellipse s) (Matrix 3 3 r) (Matrix 3 3 s)
- unitEllipse :: Num r => Ellipse r
- circleToEllipse :: Floating r => Circle p r -> Ellipse r
- ellipseToCircle :: (Num r, Eq r) => Ellipse r -> Maybe (Circle () r)
- _EllipseCircle :: (Floating r, Eq r) => Prism' (Ellipse r) (Circle () r)
Documentation
A typre representing planar ellipses
Ellipse (Transformation 2 r) |
Instances
Functor Ellipse Source # | |
Foldable Ellipse Source # | |
Defined in Data.Geometry.Ellipse 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 # elem :: Eq a => a -> Ellipse a -> Bool # maximum :: Ord a => Ellipse a -> a # minimum :: Ord a => Ellipse a -> a # | |
Traversable Ellipse Source # | |
Eq r => Eq (Ellipse r) Source # | |
Show r => Show (Ellipse r) Source # | |
Num r => IsTransformable (Ellipse r) Source # | |
Defined in Data.Geometry.Ellipse transformBy :: Transformation (Dimension (Ellipse r)) (NumType (Ellipse r)) -> Ellipse r -> Ellipse r Source # | |
type NumType (Ellipse r) Source # | |
Defined in Data.Geometry.Ellipse | |
type Dimension (Ellipse r) Source # | |
Defined in Data.Geometry.Ellipse |
affineTransformation :: forall r r. Iso (Ellipse r) (Ellipse r) (Transformation 2 r) (Transformation 2 r) Source #
unitEllipse :: Num r => Ellipse r Source #
Ellipse representing the unit circle