linear-accelerate-0.7.0.0: Lifting linear vector spaces into Accelerate

Copyright[2019..2020] Trevor L. McDonell
LicenseBSD-style (see the file LICENSE)
MaintainerTrevor L. McDonell <trevor.mcdonell@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Data.Array.Accelerate.Linear.Projection

Description

Common projection matrices; for example perspective and orthographic transformation matrices.

Since: 0.7.0.0

Synopsis

Documentation

lookAt Source #

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

perspective Source #

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

infinitePerspective Source #

Arguments

:: Floating a 
=> Exp a

FOV

-> Exp a

Aspect Ratio

-> Exp a

Near plane

-> Exp (M44 a) 

Build a matrix for a symmetric perspective-view frustum with a far plane at infinite

ortho Source #

Arguments

:: Floating a 
=> Exp a

Left

-> Exp a

Right

-> Exp a

Bottom

-> Exp a

Top

-> Exp a

Near

-> Exp a

Far

-> Exp (M44 a) 

Build an orthographic perspective matrix from 6 clipping planes

($$$$$$) :: (b -> a) -> (c -> d -> e -> f -> g -> h -> b) -> c -> d -> e -> f -> g -> h -> a infixr 0 Source #