Graphics.PDF.Coordinates
 Portability portable Stability experimental Maintainer misc@NOSPAMalpheccar.org
 Contents Geometry Types Transformations
Description
Coordinates for a PDF document
Synopsis
data Angle
 = Degree !PDFFloat | Radian !PDFFloat
type Point = Complex PDFFloat
data Matrix = Matrix !PDFFloat !PDFFloat !PDFFloat !PDFFloat !PDFFloat !PDFFloat
dot :: RealFloat t => Complex t -> Complex t -> t
scalePt :: RealFloat t => t -> Complex t -> Complex t
project :: RealFloat t => Complex t -> Complex t -> Complex t
projectX :: RealFloat t => Complex t -> Complex t
projectY :: RealFloat t => Complex t -> Complex t
pointMatrix :: Point -> Point -> Point -> Matrix
transform :: Matrix -> Point -> Point
identity :: Matrix
rotate :: Angle -> Matrix
translate :: Point -> Matrix
scale :: PDFFloat -> PDFFloat -> Matrix
spiral :: Point -> Matrix
Geometry
Types
 data Angle Source
Angle
Constructors
 type Point = Complex PDFFloat Source
 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
 Eq Matrix Num Matrix Show Matrix
Transformations
 toRadian :: Angle -> PDFFloat Source
 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
 pointMatrix Source
 :: Point X component -> Point Y component -> Point translation component -> Matrix Specifies a matrix as three points
 transform :: Matrix -> Point -> Point Source
Applies a matrix to a point
 identity :: Matrix Source
Identity matrix
 rotate Source
 :: Angle Rotation angle -> Matrix Rotation matrix
 translate :: Point -> Matrix Source
Translation matrix 'transform (translate z) w == z + w'
 scale Source
 :: PDFFloat Horizontal scaling -> PDFFloat Horizontal scaling -> Matrix Scaling matrix
 spiral :: Point -> Matrix Source