HPDF-1.3: Generation of PDF documentsContentsIndex
Graphics.PDF.Coordinates
Portabilityportable
Stabilityexperimental
Maintainermisc@NOSPAMalpheccar.org
Contents
Geometry
Types
Transformations
Frame of reference operators
Description
Coordinates for a PDF document
Synopsis
data Angle
= Degree PDFFloat
| Radian PDFFloat
data Matrix = Matrix !PDFFloat !PDFFloat !PDFFloat !PDFFloat !PDFFloat !PDFFloat
rotate :: Angle -> Matrix
translate :: PDFFloat -> PDFFloat -> Matrix
scale :: PDFFloat -> PDFFloat -> Matrix
identity :: Matrix
applyMatrix :: Matrix -> Draw ()
Geometry
Types
data Angle
Angle
Constructors
Degree PDFFloatAngle in degrees
Radian PDFFloatAngle in radians
data Matrix

A transformation matrix. An affine transformation a b c d e f

 a b 0
 c d 0
 e f 1
 
Constructors
Matrix !PDFFloat !PDFFloat !PDFFloat !PDFFloat !PDFFloat !PDFFloat
show/hide Instances
Transformations
rotate
:: AngleRotation angle
-> Matrix
Rotation matrix
translate
:: PDFFloatHorizontal translation
-> PDFFloatVertical translation
-> Matrix
Translation matrix
scale
:: PDFFloatHorizontal scaling
-> PDFFloatHorizontal scaling
-> Matrix
Scaling matrix
identity :: Matrix
Identity matrix
Frame of reference operators
applyMatrix :: Matrix -> Draw ()
Apply a transformation matrix to the current coordinate frame
Produced by Haddock version 0.8