summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-04-20 17:55:26 +0800
committerSebastian Rasmussen <sebras@gmail.com>2017-04-20 19:47:03 +0800
commit82720bdeb46e9bb1860f61e77f5d34e0d159cead (patch)
tree452b2435ff2845d9d34f9c940e2be7fdc5d11b73
parentab4e8540dbe3d3af540a1c9c3868332c1ce519ff (diff)
downloadmupdf-82720bdeb46e9bb1860f61e77f5d34e0d159cead.tar.xz
jni: Add constructor to duplicate existing matrix.
-rw-r--r--platform/java/src/com/artifex/mupdf/fitz/Matrix.java4
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;