| Copyright | [2019..2020] Trevor L. McDonell |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Trevor L. McDonell <trevor.mcdonell@gmail.com> |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Array.Accelerate.Linear.Projection
Description
Common projection matrices; for example perspective and orthographic transformation matrices.
Since: 0.7.0.0
Synopsis
- lookAt :: (Epsilon a, Floating a) => Exp (V3 a) -> Exp (V3 a) -> Exp (V3 a) -> Exp (M44 a)
- perspective :: Floating a => Exp a -> Exp a -> Exp a -> Exp a -> Exp (M44 a)
- infinitePerspective :: Floating a => Exp a -> Exp a -> Exp a -> Exp (M44 a)
- ortho :: Floating a => Exp a -> Exp a -> Exp a -> Exp a -> Exp a -> Exp a -> Exp (M44 a)
- ($$$$$$) :: (b -> a) -> (c -> d -> e -> f -> g -> h -> b) -> c -> d -> e -> f -> g -> h -> a
Documentation
Arguments
| :: (Epsilon a, Floating a) | |
| => Exp (V3 a) | Eye |
| -> Exp (V3 a) | Center |
| -> Exp (V3 a) | Up |
| -> Exp (M44 a) |
Build a look at view matrix
Arguments
| :: Floating a | |
| => Exp a | FOV |
| -> Exp a | Aspect ratio |
| -> Exp a | Near plane |
| -> Exp a | Far plane |
| -> Exp (M44 a) |
Build a matrix for a symmetric perspective-view frustum
Build a matrix for a symmetric perspective-view frustum with a far plane at infinite