Copyright | (C) Frank Staals |
---|---|
License | see the LICENSE file |
Maintainer | Frank Staals |
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 type representing planar ellipses
Ellipse (Transformation 2 r) |
Instances
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