Copyright | (c) 2011 diagrams-lib team (see LICENSE) |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | diagrams-discuss@googlegroups.com |
Safe Haskell | None |
Language | Haskell2010 |
Various three-dimensional shapes.
- data Ellipsoid = Ellipsoid T3
- sphere :: (Backend b R3, Renderable Ellipsoid b) => Diagram b R3
- data Box = Box T3
- cube :: (Backend b R3, Renderable Box b) => Diagram b R3
- data Frustum = Frustum Double Double T3
- frustum :: (Backend b R3, Renderable Frustum b) => Double -> Double -> Diagram b R3
- cone :: (Backend b R3, Renderable Frustum b) => Diagram b R3
- cylinder :: (Backend b R3, Renderable Frustum b) => Diagram b R3
Documentation
sphere :: (Backend b R3, Renderable Ellipsoid b) => Diagram b R3 Source
A sphere of radius 1 with its center at the origin.
cube :: (Backend b R3, Renderable Box b) => Diagram b R3 Source
A cube with side length 1, in the positive octant, with one vertex at the origin.