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 n = Ellipsoid (Transformation V3 n)
- sphere :: (Typeable n, OrderedField n, Renderable (Ellipsoid n) b) => QDiagram b V3 n Any
- data Box n = Box (Transformation V3 n)
- cube :: (Typeable n, OrderedField n, Renderable (Box n) b) => QDiagram b V3 n Any
- data Frustum n = Frustum n n (Transformation V3 n)
- frustum :: (TypeableFloat n, Renderable (Frustum n) b) => n -> n -> QDiagram b V3 n Any
- cone :: (TypeableFloat n, Renderable (Frustum n) b) => QDiagram b V3 n Any
- cylinder :: (TypeableFloat n, Renderable (Frustum n) b) => QDiagram b V3 n Any
Documentation
Fractional n => Transformable (Ellipsoid n) | |
Fractional n => Renderable (Ellipsoid n) NullBackend | |
Typeable (* -> *) Ellipsoid | |
type V (Ellipsoid n) = V3 | |
type N (Ellipsoid n) = n |
sphere :: (Typeable n, OrderedField n, Renderable (Ellipsoid n) b) => QDiagram b V3 n Any Source
A sphere of radius 1 with its center at the origin.
Box (Transformation V3 n) |
Fractional n => Transformable (Box n) | |
Fractional n => Renderable (Box n) NullBackend | |
Typeable (* -> *) Box | |
type V (Box n) = V3 | |
type N (Box n) = n |
cube :: (Typeable n, OrderedField n, Renderable (Box n) b) => QDiagram b V3 n Any Source
A cube with side length 1, in the positive octant, with one vertex at the origin.
Frustum n n (Transformation V3 n) |
Fractional n => Transformable (Frustum n) | |
Fractional n => Renderable (Frustum n) NullBackend | |
Typeable (* -> *) Frustum | |
type V (Frustum n) = V3 | |
type N (Frustum n) = n |
frustum :: (TypeableFloat n, Renderable (Frustum n) b) => n -> n -> QDiagram b V3 n Any Source
cone :: (TypeableFloat n, Renderable (Frustum n) b) => QDiagram b V3 n Any Source
A cone with its base centered on the origin, with radius 1 at the base, height 1, and it's apex on the positive Z axis.
cylinder :: (TypeableFloat n, Renderable (Frustum n) b) => QDiagram b V3 n Any Source
A circular cylinder of radius 1 with one end cap centered on the origin, and extending to Z=1.