flaw-math-0.1.0.0

LicenseMIT
Safe HaskellSafe
LanguageHaskell2010

Flaw.Math.Geometry

Description

 
Synopsis

Documentation

affineLookAt :: (Vectorized a, Floating a) => Vec3 a -> Vec3 a -> Vec3 a -> Mat4x4 a Source #

projectionOrtho Source #

Arguments

:: (Vectorized a, Floating a) 
=> a

Width of screen in view-space units.

-> a

Height of screen in view-space units.

-> a

Z mapped to 0.

-> a

Z mapped to 1.

-> Mat4x4 a 

Orthographic projection matrix.

projectionPerspectiveFov Source #

Arguments

:: (Vectorized a, Floating a) 
=> a

Vertical field of view in radians.

-> a

Viewport width / height.

-> a

Linear Z mapped to homogeneous 0.

-> a

Linear Z mapped to homogeneous 1.

-> Mat4x4 a 

Perspective projection matrix.