aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-02-12 10:44:15 +0100
committerJay Berkenbilt <ejb@ql.org>2021-02-13 08:30:00 +0100
commite2593e2efe140d47870b0c511cbf5160db080edd (patch)
treefe3879e2e4a916fe02b513f24e88ebca58331563 /libqpdf
parent07f40bd25442f25c0af948ae1b0dac7fdff1688c (diff)
downloadqpdf-e2593e2efe140d47870b0c511cbf5160db080edd.tar.zst
Move QPDFMatrix into the public API
Diffstat (limited to 'libqpdf')
-rw-r--r--libqpdf/QPDFMatrix.cc3
-rw-r--r--libqpdf/qpdf/QPDFMatrix.hh53
2 files changed, 0 insertions, 56 deletions
diff --git a/libqpdf/QPDFMatrix.cc b/libqpdf/QPDFMatrix.cc
index c78154aa..18122d72 100644
--- a/libqpdf/QPDFMatrix.cc
+++ b/libqpdf/QPDFMatrix.cc
@@ -118,9 +118,6 @@ QPDFMatrix::transform(double x, double y, double& xp, double& yp)
QPDFObjectHandle::Rectangle
QPDFMatrix::transformRectangle(QPDFObjectHandle::Rectangle r)
{
- // Transform a rectangle by creating a new rectangle the tightly
- // bounds the polygon resulting from transforming the four
- // corners.
std::vector<double> tx(4);
std::vector<double> ty(4);
transform(r.llx, r.lly, tx.at(0), ty.at(0));
diff --git a/libqpdf/qpdf/QPDFMatrix.hh b/libqpdf/qpdf/QPDFMatrix.hh
deleted file mode 100644
index 7b19a665..00000000
--- a/libqpdf/qpdf/QPDFMatrix.hh
+++ /dev/null
@@ -1,53 +0,0 @@
-#ifndef QPDFMATRIX_HH
-#define QPDFMATRIX_HH
-
-#include <qpdf/QPDFObjectHandle.hh>
-#include <qpdf/DLL.h>
-#include <string>
-
-class QPDFMatrix
-{
- public:
- QPDF_DLL
- QPDFMatrix();
- QPDF_DLL
- QPDFMatrix(double a, double b, double c,
- double d, double e, double f);
- QPDF_DLL
- QPDFMatrix(QPDFObjectHandle::Matrix const&);
-
- QPDF_DLL
- std::string unparse() const;
-
- QPDF_DLL
- QPDFObjectHandle::Matrix getAsMatrix() const;
-
- // This is not part of the public API. Just provide the methods we
- // need as we need them.
- QPDF_DLL
- void concat(QPDFMatrix const& other);
- QPDF_DLL
- void scale(double sx, double sy);
- QPDF_DLL
- void translate(double tx, double ty);
- // Any value other than 90, 180, or 270 is ignored
- QPDF_DLL
- void rotatex90(int angle);
-
- QPDF_DLL
- void transform(double x, double y, double& xp, double& yp);
-
- QPDF_DLL
- QPDFObjectHandle::Rectangle transformRectangle(
- QPDFObjectHandle::Rectangle r);
-
- private:
- double a;
- double b;
- double c;
- double d;
- double e;
- double f;
-};
-
-#endif // QPDFMATRIX_HH