hgeometry-0.12.0.2: Geometric Algorithms, Data structures, and Data types.
Copyright(C) Frank Staals
Licensesee the LICENSE file
MaintainerFrank Staals
Safe HaskellNone
LanguageHaskell2010

Graphics.Render

Description

 
Synopsis

Rendering functions

renderTriangle :: Fractional r => Transformation 3 r -> Triangle 3 p r -> Triangle 2 p r Source #

Rendering function for a triangle.

renderPoint :: Fractional r => Transformation 3 r -> Point 3 r -> Point 2 r Source #

Render a point

renderLineSegment :: Fractional r => Transformation 3 r -> LineSegment 3 p r -> LineSegment 2 p r Source #

Renders a line segment

renderWithTransform Source #

Arguments

:: (Fractional r, IsTransformable g, Dimension g ~ 3, NumType g ~ r) 
=> (g -> g')

Projection function

-> Transformation 3 r

The camera transform

-> g

The thing we wish to transform

-> g' 

Generic Rendering Function