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

Safe HaskellNone
LanguageHaskell2010

Diagrams.ThreeD.Deform

Synopsis

Documentation

parallelX0 :: (R1 v, Num n) => Deformation v v n Source

The parallel projection onto the plane x=0

perspectiveX1 :: (R1 v, Functor v, Fractional n) => Deformation v v n Source

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

facingX :: (R1 v, Functor v, Fractional n) => Deformation v v n Source

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

parallelY0 :: (R2 v, Num n) => Deformation v v n Source

The parallel projection onto the plane y=0

perspectiveY1 :: (R2 v, Functor v, Floating n) => Deformation v v n Source

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

parallelZ0 :: (R3 v, Num n) => Deformation v v n Source

The parallel projection onto the plane z=0

perspectiveZ1 :: (R3 v, Functor v, Fractional n) => Deformation v v n Source

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