HPDF-1.4.4: Generation of PDF documents

Portabilityportable
Stabilityexperimental
Maintainermisc@NOSPAMalpheccar.org
Safe HaskellNone

Graphics.PDF.Coordinates

Contents

Description

Coordinates for a PDF document

Synopsis

Documentation

Geometry

Types

data Angle Source

Angle

Constructors

Degree !PDFFloat

Angle in degrees

Radian !PDFFloat

Angle in radians

data Matrix Source

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

 a b 0
 c d 0
 e f 1

Instances

Transformations

dot :: RealFloat t => Complex t -> Complex t -> tSource

Dot product of two points 'dot (x :+ y) (a :+ b) == x * a + y * b' 'dot z w == magnitude z * magnitude w * cos (phase z - phase w)'

project :: RealFloat t => Complex t -> Complex t -> Complex tSource

projects the first point onto the second

projectX :: RealFloat t => Complex t -> Complex tSource

projects a point onto the x-axis

projectY :: RealFloat t => Complex t -> Complex tSource

projects a point onto the y-axis

pointMatrixSource

Arguments

:: Point

X component

-> Point

Y component

-> Point

translation component

-> Matrix 

Specifies a matrix as three points

transform :: Matrix -> Point -> PointSource

Applies a matrix to a point

identity :: MatrixSource

Identity matrix

rotateSource

Arguments

:: Angle

Rotation angle

-> Matrix 

Rotation matrix

translate :: Point -> MatrixSource

Translation matrix 'transform (translate z) w == z + w'

scaleSource

Arguments

:: PDFFloat

Horizontal scaling

-> PDFFloat

Horizontal scaling

-> Matrix 

Scaling matrix