diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2017-04-20 17:55:26 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2017-04-20 19:47:03 +0800 |
commit | 82720bdeb46e9bb1860f61e77f5d34e0d159cead (patch) | |
tree | 452b2435ff2845d9d34f9c940e2be7fdc5d11b73 | |
parent | ab4e8540dbe3d3af540a1c9c3868332c1ce519ff (diff) | |
download | mupdf-82720bdeb46e9bb1860f61e77f5d34e0d159cead.tar.xz |
jni: Add constructor to duplicate existing matrix.
-rw-r--r-- | platform/java/src/com/artifex/mupdf/fitz/Matrix.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/java/src/com/artifex/mupdf/fitz/Matrix.java b/platform/java/src/com/artifex/mupdf/fitz/Matrix.java index 80da84fc..ac78f91b 100644 --- a/platform/java/src/com/artifex/mupdf/fitz/Matrix.java +++ b/platform/java/src/com/artifex/mupdf/fitz/Matrix.java @@ -29,6 +29,10 @@ public class Matrix this(1, 0, 0, 1, 0, 0); } + public Matrix(Matrix copy) { + this(copy.a, copy.b, copy.c, copy.d, copy.e, copy.f); + } + public Matrix(Matrix one, Matrix two) { a = one.a * two.a + one.b * two.c; b = one.a * two.b + one.b * two.d; |