aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/matrix.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2018-12-25 01:29:30 +0100
committerJay Berkenbilt <ejb@ql.org>2019-01-01 05:02:43 +0100
commit5059ec0d35547c0b3328c3089221b7cb3c3ac45d (patch)
tree79c93c72f424ef640f83f80d0c2f2d269cf9e2e3 /libtests/matrix.cc
parentdaeb5a85b6ded478aaac942c439ef5fd6bb8874f (diff)
downloadqpdf-5059ec0d35547c0b3328c3089221b7cb3c3ac45d.tar.zst
Add Matrix class under QPDFObjectHandle
Diffstat (limited to 'libtests/matrix.cc')
-rw-r--r--libtests/matrix.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libtests/matrix.cc b/libtests/matrix.cc
index d27e96cf..f022ce4e 100644
--- a/libtests/matrix.cc
+++ b/libtests/matrix.cc
@@ -50,6 +50,11 @@ int main()
m.transform(240, 480, xp, yp);
check_xy(xp, yp, "2582.50 4912.00");
+ check(QPDFMatrix(
+ QPDFObjectHandle::parse(
+ "[3 1 4 1 5 9.26535]").getArrayAsMatrix()),
+ "3.00000 1.00000 4.00000 1.00000 5.00000 9.26535");
+
std::cout << "matrix tests done" << std::endl;
return 0;
}