linear-1.11.2: Linear Algebra

Copyright(C) 2014 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe-Inferred
LanguageHaskell98

Linear.Perspective

Description

Common perspective transformation matrices.

Synopsis

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