geomancy-0.2.4.0: Geometry and matrix manipulation
Safe HaskellNone
LanguageHaskell2010

Geomancy.Transform

Synopsis

Documentation

inverse :: (Coercible Mat4 a, Coercible Mat4 a) => a -> a Source #

Compute an inverse matrix, slowly.

apply :: Vec3 -> Transform -> Vec3 Source #

Apply transformation to a vector, then normalize with perspective division

(!.) :: Transform -> Vec3 -> Vec3 Source #

Matrix - column vector multiplication with perspective division