lambdacube-engine-0.2.1: 3D rendering engine written entirely in Haskell

Graphics.LambdaCube.Utility

Synopsis

Documentation

groupSetBy :: (a -> a -> Ordering) -> [a] -> [[a]]Source

perspectiveSource

Arguments

:: FloatType

Near plane clipping distance (always positive).

-> FloatType

Far plane clipping distance (always positive).

-> FloatType

Field of view of the y axis, in radians.

-> FloatType

Aspect ratio, i.e. screen's width/height.

-> Mat4 

Perspective transformation matrix.

rotationEuler :: Vec3 -> Proj4Source

Pure orientation matrix defined by Euler angles.

lookatSource

Arguments

:: Vec3

Camera position.

-> Vec3

Target position.

-> Vec3

Upward direction.

-> Proj4 

Camera transformation matrix.

foldM' :: Monad m => (a -> b -> m a) -> a -> [b] -> m aSource