Safe Haskell | None |
---|---|

Language | Haskell2010 |

- parallelX0 :: (R1 v, Num n) => Deformation v v n
- perspectiveX1 :: (R1 v, Functor v, Fractional n) => Deformation v v n
- facingX :: (R1 v, Functor v, Fractional n) => Deformation v v n
- parallelY0 :: (R2 v, Num n) => Deformation v v n
- perspectiveY1 :: (R2 v, Functor v, Floating n) => Deformation v v n
- facingY :: (R2 v, Functor v, Fractional n) => Deformation v v n
- parallelZ0 :: (R3 v, Num n) => Deformation v v n
- perspectiveZ1 :: (R3 v, Functor v, Fractional n) => Deformation v v n
- facingZ :: (R3 v, Functor v, Fractional n) => Deformation v v n

# 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.

facingY :: (R2 v, Functor v, Fractional n) => Deformation v v n Source

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.

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