diagrams-lib-1.2.0.2: Embedded domain-specific language for declarative graphics

Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellNone

Diagrams.ThreeD.Shapes

Description

Various three-dimensional shapes.

Synopsis

Documentation

sphere :: (Backend b R3, Renderable Ellipsoid b) => Diagram b R3Source

A sphere of radius 1 with its center at the origin.

cube :: (Backend b R3, Renderable Box b) => Diagram b R3Source

A cube with side length 1, in the positive octant, with one vertex at the origin.

frustum :: (Backend b R3, Renderable Frustum b) => Double -> Double -> Diagram b R3Source

A frustum of a right circular cone. It has height 1 oriented along the positive z axis, and radii r0 and r1 at Z=0 and Z=1. cone and cylinder are special cases.

cone :: (Backend b R3, Renderable Frustum b) => Diagram b R3Source

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 :: (Backend b R3, Renderable Frustum b) => Diagram b R3Source

A circular cylinder of radius 1 with one end cap centered on the origin, and extending to Z=1.