aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFMatrix.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-03-03 21:02:38 +0100
committerJay Berkenbilt <ejb@ql.org>2021-03-04 21:08:36 +0100
commita2124f992c7a3c2695b93cf7fe9298c3a862ffc9 (patch)
treef1be9857788729ea4c28510ed5c4d993f085dde4 /libqpdf/QPDFMatrix.cc
parent552303a94a997f403e3e966c9d6967d535c7428b (diff)
downloadqpdf-a2124f992c7a3c2695b93cf7fe9298c3a862ffc9.tar.zst
Add QPDFMatrix::operator==
Diffstat (limited to 'libqpdf/QPDFMatrix.cc')
-rw-r--r--libqpdf/QPDFMatrix.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/libqpdf/QPDFMatrix.cc b/libqpdf/QPDFMatrix.cc
index 2b269099..42dfcf5d 100644
--- a/libqpdf/QPDFMatrix.cc
+++ b/libqpdf/QPDFMatrix.cc
@@ -142,3 +142,14 @@ QPDFMatrix::transformRectangle(QPDFObjectHandle::Rectangle r) const
*std::max_element(tx.begin(), tx.end()),
*std::max_element(ty.begin(), ty.end()));
}
+
+bool
+QPDFMatrix::operator==(QPDFMatrix const& rhs) const
+{
+ return ((this->a == rhs.a) &&
+ (this->b == rhs.b) &&
+ (this->c == rhs.c) &&
+ (this->d == rhs.d) &&
+ (this->e == rhs.e) &&
+ (this->f == rhs.f));
+}