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

Safe HaskellNone

Diagrams.ThreeD.Deform

Synopsis

Documentation

parallelX0 :: Deformation R3Source

The parallel projection onto the plane x=0

perspectiveX1 :: Deformation R3Source

The perspective division onto the plane x=1 along lines going through the origin.

parallelY0 :: Deformation R3Source

The parallel projection onto the plane y=0

perspectiveY1 :: Deformation R3Source

The perspective division onto the plane y=1 along lines going through the origin.

parallelZ0 :: Deformation R3Source

The parallel projection onto the plane z=0

perspectiveZ1 :: Deformation R3Source

The perspective division onto the plane z=1 along lines going through the origin.

facingX :: Deformation R3Source

The viewing transform for a viewer facing along the positive X axis. X coördinates stay fixed, while Y coördinates are compressed with increasing distance. asDeformation (translation unitX) parallelX0 frustrumX = perspectiveX1