hps-0.2: Haskell Postscript

Graphics.PS.Pt

Synopsis

Documentation

data Pt Source

Point data type, component values are real.

Constructors

Pt Double Double 

Instances

Eq Pt 
Num Pt 
Ord Pt 
Show Pt 
Transformable Pt 

polarToRectangular :: Pt -> PtSource

Convert from polar to rectangular co-ordinates.

ptMin :: Pt -> Pt -> PtSource

ptMax :: Pt -> Pt -> PtSource

origin :: PtSource

Origin, ie. (Pt 0 0).

ptTransform :: Matrix -> Pt -> PtSource

Apply a transformation matrix to a point.