From 82720bdeb46e9bb1860f61e77f5d34e0d159cead Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Thu, 20 Apr 2017 17:55:26 +0800 Subject: jni: Add constructor to duplicate existing matrix. --- platform/java/src/com/artifex/mupdf/fitz/Matrix.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'platform/java') 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; -- cgit v1.2.3