GlomeTrace-0.3: Ray Tracing Library

Safe HaskellSafe-Inferred

Data.Glome.Cone

Synopsis

Documentation

disc :: Vec -> Vec -> Flt -> SolidItem t mSource

Create a disc. These are used as the end-caps on cones and cylinders, but they can be constructed by themselves as well.

cone :: Vec -> Flt -> Vec -> Flt -> SolidItem t mSource

Construct a cone from p1 to p2. R1 and r2 are the radii at each end. A cone need not come to a point at either end.

cylinder :: Vec -> Vec -> Flt -> SolidItem t mSource

Construct a general cylinder from p1 to p2 with radius r.