Copyright | (c) 2011 diagrams-lib team (see LICENSE) |
---|---|

License | BSD-style (see LICENSE) |

Maintainer | diagrams-discuss@googlegroups.com |

Safe Haskell | None |

Language | Haskell2010 |

Two-dimensional ellipses (and, as a special case, circles).

- unitCircle :: (TrailLike t, V t ~ V2, N t ~ n, RealFloat n) => t
- circle :: (TrailLike t, V t ~ V2, N t ~ n, RealFloat n, Transformable t) => n -> t
- ellipse :: (TrailLike t, V t ~ V2, N t ~ n, RealFloat n, Transformable t) => n -> t
- ellipseXY :: (TrailLike t, V t ~ V2, N t ~ n, RealFloat n, Transformable t) => n -> n -> t

# Ellipse and circle diagrams

unitCircle :: (TrailLike t, V t ~ V2, N t ~ n, RealFloat n) => t Source

A circle of radius 1, with center at the origin.

circle :: (TrailLike t, V t ~ V2, N t ~ n, RealFloat n, Transformable t) => n -> t Source

A circle of the given radius, centered at the origin. As a path, it begins at (r,0).