pdf-toolbox-content-0.1.1: A collection of tools for processing PDF files
Safe HaskellSafe-Inferred
LanguageHaskell2010

Pdf.Content.Transform

Description

2d affine transform

Synopsis

Documentation

data Transform a Source #

Affine transform

Constructors

Transform a a a a a a 

Instances

Instances details
Show a => Show (Transform a) Source # 
Instance details

Defined in Pdf.Content.Transform

data Vector a Source #

2d vector/point

Constructors

Vector a a 

Instances

Instances details
Show a => Show (Vector a) Source # 
Instance details

Defined in Pdf.Content.Transform

Methods

showsPrec :: Int -> Vector a -> ShowS #

show :: Vector a -> String #

showList :: [Vector a] -> ShowS #

identity :: Num a => Transform a Source #

Identity transform

translation :: Num a => a -> a -> Transform a Source #

Translation

scale :: Num a => a -> a -> Transform a Source #

Scale

transform :: Num a => Transform a -> Vector a -> Vector a Source #

Apply transformation to vector

translate :: Num a => a -> a -> Transform a -> Transform a Source #

Translate

multiply :: Num a => Transform a -> Transform a -> Transform a Source #

Combine two transformations