hps-0.11: Haskell Postscript

Graphics.PS.Pt

Description

Point type and associated functions.

Synopsis

Documentation

data Pt Source

Cartesian co-ordinate with real valued x and y fields.

Constructors

Pt Double Double 

Instances

polarToRectangular :: Pt -> PtSource

Convert from polar to rectangular co-ordinates.

ptMin :: Pt -> Pt -> PtSource

Pt at x and y minima of inputs.

ptMax :: Pt -> Pt -> PtSource

Pt at x and y maxima of inputs.

ptXYs :: [Pt] -> [Double]Source

x and y elements of a set of Pts.

origin :: PtSource

Origin, ie. (Pt 0 0).

ptTransform :: Matrix -> Pt -> PtSource

Apply a transformation matrix to a point.