shady-graphics-0.5.0: Functional GPU programming - DSEL & compiler

Stabilityexperimental
Maintainerconal@conal.net

Shady.ITransform

Description

Invertible transformations

Synopsis

Documentation

data ITransform a Source

Transform with inverse. The Monoid instances is identity and composition (in the usual order for composition of the forward transformations).

Constructors

ITransform 

Fields

itForward :: Unop a
 
itBackward :: Unop a
 

Instances

andInverse :: (c -> Unop a) -> (c -> c) -> c -> ITransform aSource

Handy when we invert a transform by modifying the argument to the transform's maker.

class ITrans w a | a -> w whereSource

Transformable values

Methods

(*:) :: ITransform w -> Unop aSource

Instances

ITrans Point Color 
ITrans w (E a) 
(ITrans w a, ITrans w b) => ITrans w (a -> b) 
(ITrans w a, ITrans w b) => ITrans w (a, b) 
(ITrans w a, ITrans w b, ITrans w c) => ITrans w (a, b, c) 
(ITrans w a, ITrans w b, ITrans w c, ITrans w d) => ITrans w (a, b, c, d) 
ITrans (Complex T) T 
ITrans (Complex s) (Complex s)