Copyright | (C) 2014 Edward Kmett |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
Common perspective transformation matrices.
Documentation
lookAt :: (Epsilon a, Floating a) => V3 a -> V3 a -> V3 a -> M44 a Source
Build a look at view matrix
perspective :: Floating a => a -> a -> a -> a -> M44 a Source
Build a matrix for a symmetric perspective-view frustum
infinitePerspective :: Floating a => a -> a -> a -> M44 a Source
Build a matrix for a symmetric perspective-view frustum with a far plane at infinite