From a2124f992c7a3c2695b93cf7fe9298c3a862ffc9 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Wed, 3 Mar 2021 15:02:38 -0500 Subject: Add QPDFMatrix::operator== --- include/qpdf/QPDFMatrix.hh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/qpdf/QPDFMatrix.hh b/include/qpdf/QPDFMatrix.hh index 9448fb99..1afc15a2 100644 --- a/include/qpdf/QPDFMatrix.hh +++ b/include/qpdf/QPDFMatrix.hh @@ -90,6 +90,16 @@ class QPDFMatrix QPDFObjectHandle::Rectangle transformRectangle( QPDFObjectHandle::Rectangle r); + // operator== tests for exact equality, not considering deltas for + // floating point. + QPDF_DLL + bool operator==(QPDFMatrix const& rhs) const; + QPDF_DLL + bool operator!=(QPDFMatrix const& rhs) const + { + return ! operator==(rhs); + } + double a; double b; double c; -- cgit v1.2.3-54-g00ecf