Add matrix/ directory to corpus
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1020983002
diff --git a/fx/matrix/1_matrix.pdf b/fx/matrix/1_matrix.pdf
new file mode 100644
index 0000000..f179271
--- /dev/null
+++ b/fx/matrix/1_matrix.pdf
@@ -0,0 +1,154 @@
+%PDF-1.7
+
+1 0 obj
+<<
+ /Type /Pages
+ /Kids [2 0 R]
+ /Count 1
+>>
+endobj
+
+2 0 obj
+<<
+ /Type /Page
+ /Parent 1 0 R
+ /MediaBox [0 0 531 666]
+ /Contents [4 0 R]
+ /Resources <<
+ /Font <</F1 5 0 R>>
+ >>
+
+>>
+endobj
+
+3 0 obj
+<<
+ /Type /Catalog
+ /Pages 1 0 R
+>>
+endobj
+
+4 0 obj
+<<
+ /Length 0
+
+>> stream
+
+BT
+/F1 30 Tf 200 620 TD (Matrix)Tj
+ET
+
+%% a>1 & -1<d<0
+q
+1 0 0 1 20 570 cm
+q
+0.654 w
+5.3082 0 0 -0.13 0 0 cm
+0 0 20 200 re S
+Q
+BT /F1 20 Tf 120 -20 TD (a>1 & -1<d<0 0<w<1)Tj
+ET
+Q
+
+%% a>1 & d<-1
+q
+1 0 0 1 20 510 cm
+q
+0.654 w
+5.3082 0 0 -1.3 0 0 cm
+0 0 20 20 re S Q
+BT /F1 20 Tf 120 -20 TD (a>1 & d<-1)Tj
+ET
+Q
+
+%% a>1 & d=1
+q
+1 0 0 1 20 430 cm
+q
+0.654 w
+5.3082 0 0 1 0 0 cm
+0 0 20 20 re S Q
+BT /F1 20 Tf 120 0 TD (a>1 & d=1)Tj
+ET
+Q
+
+%% a>1 & d>1
+q
+1 0 0 1 20 370 cm
+q
+0.654 w
+5.3082 0 0 1.3 0 0 cm
+0 0 20 20 re S Q
+BT /F1 20 Tf 120 0 TD (a>1 & d>1)Tj
+ET
+Q
+
+%% a>1 & 0<d<1 w>1
+q
+1 0 0 1 20 310 cm
+q
+1.5 w
+2 0 0 0.1 0 0 cm
+0 0 40 200 re S Q
+BT /F1 20 Tf 120 0 TD (a>1 & 0<d<1 w>1)Tj
+ET
+Q
+
+%% a>1 & d=1
+q
+1 0 0 1 20 260 cm
+q
+1.5 w
+2 0 0 1 0 0 cm
+0 0 40 20 re S Q
+BT /F1 20 Tf 120 0 TD (a>1 & d=1 )Tj
+ET
+Q
+
+%% a>1 & -1<d<0 w>1
+q
+1 0 0 1 20 230 cm
+q
+1.5 w
+2 0 0 -0.1 0 0 cm
+0 0 40 200 re S Q
+BT /F1 20 Tf 120 -20 TD (a>1 & -1<d<0 )Tj
+ET
+Q
+
+%% a>1 & d<-1 w>1
+q
+1 0 0 1 20 180 cm
+q
+1.5 w
+2 0 0 -1.3 0 0 cm
+0 0 40 20 re S Q
+BT /F1 20 Tf 120 -20 TD (a>1 & d<-1 )Tj
+ET
+Q
+
+endstream
+endobj
+
+5 0 obj
+<<
+ /Type /Font
+ /Subtype /Type1
+ /BaseFont /Helvetica
+>>
+endobj
+
+xref
+
+
+trailer
+<<
+ /Size 0
+ /Root 3 0 R
+>>
+
+startxref
+0
+
+%%EOF
+
\ No newline at end of file
diff --git a/fx/matrix/1_matrix_expected.pdf.0.png b/fx/matrix/1_matrix_expected.pdf.0.png
new file mode 100644
index 0000000..be0c0a7
--- /dev/null
+++ b/fx/matrix/1_matrix_expected.pdf.0.png
Binary files differ
diff --git a/fx/matrix/bug_cm_rotate.pdf b/fx/matrix/bug_cm_rotate.pdf
new file mode 100644
index 0000000..fa65025
--- /dev/null
+++ b/fx/matrix/bug_cm_rotate.pdf
@@ -0,0 +1,79 @@
+
+
+%PDF-1.4
+
+1 0 obj
+<<
+ /Type /Pages
+ /Kids [2 0 R]
+ /Count 1
+>>
+endobj
+
+2 0 obj
+<<
+ /Type /Page
+ /Parent 1 0 R
+ /MediaBox [0 0 612 792]
+ /Contents [4 0 R]
+ /Resources <<
+ /Font <<
+ /F1 5 0 R
+ >>
+ >>
+
+>>
+endobj
+
+3 0 obj
+<<
+ /Type /Catalog
+ /Pages 1 0 R
+>>
+endobj
+
+4 0 obj
+<<
+ /Length 0
+
+>> stream
+
+
+q
+0 0 0 RG
+100 20 m 140 20 l 140 60 l 100 60 l h
+0.707107 0.707107 -0.707107 0.707107 0 0 cm %rotate 45 degree
+S
+Q
+
+q
+1 0 0 RG
+0.707107 0.707107 -0.707107 0.707107 100 100 cm %rotate 45 degree
+100 20 m 140 20 l 140 60 l 100 60 l h S
+Q
+
+endstream
+endobj
+
+5 0 obj
+<<
+ /Type /Font
+ /Subtype /Type1
+ /BaseFont /Helvetica
+>>
+endobj
+
+xref
+
+
+trailer
+<<
+ /Size 0
+ /Root 3 0 R
+>>
+
+startxref
+0
+
+%%EOF
+
\ No newline at end of file
diff --git a/fx/matrix/bug_cm_rotate_expected.pdf.0.png b/fx/matrix/bug_cm_rotate_expected.pdf.0.png
new file mode 100644
index 0000000..fe9773f
--- /dev/null
+++ b/fx/matrix/bug_cm_rotate_expected.pdf.0.png
Binary files differ
diff --git a/fx/matrix/transformation.pdf b/fx/matrix/transformation.pdf
new file mode 100644
index 0000000..fa52d69
--- /dev/null
+++ b/fx/matrix/transformation.pdf
@@ -0,0 +1,147 @@
+%PDF-1.4
+
+1 0 obj
+<<
+ /Type /Catalog
+ /Outlines 6 0 R
+ /Pages 2 0 R
+>>
+endobj
+
+2 0 obj
+<<
+ /Type /Pages
+ /Kids [3 0 R]
+ /Count 1
+>>
+endobj
+
+3 0 obj
+<<
+ /Type /Page
+ /Parent 2 0 R
+ /MediaBox [-50 -300 300 300]
+ /Contents 4 0 R
+ /Resources << /Font<</Font1 5 0 R>> >>
+>>
+endobj
+
+4 0 obj
+<<
+ /Length 0
+>>stream
+%draw x and y axis.
+0 0 0 RG
+1 w
+0 -100 m
+0 100 l
+s
+-100 0 m
+100 0 l
+s
+
+%draw base n
+BT
+/Font1 100 Tf
+1 Tr
+(n) Tj
+ET
+
+%draw translation
+q
+
+1 0 0 1 50 100 cm
+1 w
+1 0 0 RG
+0 -100 m
+0 100 l
+s
+-100 0 m
+100 0 l
+s
+BT
+/Font1 100 Tf
+1 Tr
+(n) Tj
+ET
+
+0.866 0.5 -0.5 0.866 0 0 cm
+0 1 0 RG
+1 w
+0 -100 m
+0 100 l
+s
+-100 0 m
+100 0 l
+s
+BT
+/Font1 100 Tf
+1 Tr
+(n) Tj
+ET
+
+3 0 0 1 0 0 cm
+0 0 1 RG
+1 w
+0 -100 m
+0 100 l
+s
+-100 0 m
+100 0 l
+s
+BT
+/Font1 100 Tf
+1 Tr
+(n) Tj
+ET
+
+Q
+
+BT
+/Font1 12 Tf
+-10 -30 TD
+0 Tr
+(----Black figures denote orignal coordinate system.) '
+(----Red figures denote coordinate system after translation.) '
+(----Green figures denote coordinate system after rotation.) '
+(----Blue figures denote coordinate system after scaling.) '
+ET
+
+endstream
+endobj
+
+5 0 obj
+<<
+ /Type /Font
+ /Subtype /Type1
+ /BaseFont /Helvetica
+>>
+endobj
+
+6 0 obj
+<<
+ /Type /Outlines
+ /First 7 0 R
+ /Last 7 0 R
+ /Count 1
+>>
+endobj
+
+7 0 obj
+<<
+ /Title (examples of transformations of coordiate system)
+ /Parent 6 0 R
+ /Dest [3 0 R /Fit]
+>>
+endobj
+
+xref
+trailer
+<<
+ /Size 0
+ /Root 1 0 R
+>>
+startxref
+0
+
+%%EOF
\ No newline at end of file
diff --git a/fx/matrix/transformation_expected.pdf.0.png b/fx/matrix/transformation_expected.pdf.0.png
new file mode 100644
index 0000000..a435336
--- /dev/null
+++ b/fx/matrix/transformation_expected.pdf.0.png
Binary files differ