geomancy-0.2.5.0: Geometry and matrix manipulation
Safe HaskellSafe-Inferred
LanguageHaskell2010

Geomancy.Transform

Synopsis

Documentation

newtype Transform Source #

Constructors

Transform 

Fields

Instances

Instances details
Storable Transform Source # 
Instance details

Defined in Geomancy.Transform

Monoid Transform Source # 
Instance details

Defined in Geomancy.Transform

Semigroup Transform Source # 
Instance details

Defined in Geomancy.Transform

Show Transform Source # 
Instance details

Defined in Geomancy.Transform

Block Transform Source # 
Instance details

Defined in Geomancy.Transform

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