HPDF-1.5.3: Generation of PDF documents

Graphics.PDF.Coordinates

Contents

Description

Coordinates for a PDF document

Synopsis

# Geometry

## Types

data Angle Source #

Angle

Constructors

data Matrix Source #

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

#### Instances

Instances details
 Source # Instance detailsDefined in Graphics.PDF.Coordinates Methods(==) :: Matrix -> Matrix -> Bool #(/=) :: Matrix -> Matrix -> Bool # Source # Instance detailsDefined in Graphics.PDF.Coordinates Methods(+) :: Matrix -> Matrix -> Matrix #(-) :: Matrix -> Matrix -> Matrix #(*) :: Matrix -> Matrix -> Matrix #abs :: Matrix -> Matrix # Source # Instance detailsDefined in Graphics.PDF.Coordinates MethodsshowsPrec :: Int -> Matrix -> ShowS #showList :: [Matrix] -> ShowS #

## Transformations

dot :: RealFloat t => Complex t -> Complex t -> t Source #

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)'

scalePt :: RealFloat t => t -> Complex t -> Complex t Source #

project :: RealFloat t => Complex t -> Complex t -> Complex t Source #

projects the first point onto the second

projectX :: RealFloat t => Complex t -> Complex t Source #

projects a point onto the x-axis

projectY :: RealFloat t => Complex t -> Complex t Source #

projects a point onto the y-axis

Arguments

 :: Point X component -> Point Y component -> Point translation component -> Matrix

Specifies a matrix as three points

Applies a matrix to a point

Identity matrix

Arguments

 :: Angle Rotation angle -> Matrix

Rotation matrix

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

Arguments

 :: PDFFloat Horizontal scaling -> PDFFloat Vertical scaling -> Matrix

Scaling matrix