diff options
author | Jay Berkenbilt <ejb@ql.org> | 2021-02-18 17:27:25 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-02-20 00:35:19 +0100 |
commit | 71e86272859aa2794263cc59446a20a826d6d3aa (patch) | |
tree | 59a077b5cd05be0c4c75ac12181afd6645dad98f /include | |
parent | de8929a41ce093a0c21ca48b2342a73cf67a51f0 (diff) | |
download | qpdf-71e86272859aa2794263cc59446a20a826d6d3aa.tar.zst |
Add const versions of QPDFMatrix::transform*
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFMatrix.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qpdf/QPDFMatrix.hh b/include/qpdf/QPDFMatrix.hh index 85f42af7..8a8bff60 100644 --- a/include/qpdf/QPDFMatrix.hh +++ b/include/qpdf/QPDFMatrix.hh @@ -74,6 +74,9 @@ class QPDFMatrix // [x y 1] * this // and take the first and second rows of the result as xp and yp. QPDF_DLL + void transform(double x, double y, double& xp, double& yp) const; + // ABI: delete non-const version + QPDF_DLL void transform(double x, double y, double& xp, double& yp); // Transform a rectangle by creating a new rectangle that tightly @@ -81,6 +84,10 @@ class QPDFMatrix // corners. QPDF_DLL QPDFObjectHandle::Rectangle transformRectangle( + QPDFObjectHandle::Rectangle r) const; + // ABI: delete non-const version + QPDF_DLL + QPDFObjectHandle::Rectangle transformRectangle( QPDFObjectHandle::Rectangle r); private: |