diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-24 17:56:26 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-24 17:56:26 +0000 |
commit | 02d42b65b779e29737275a258cb9f30fa8449e5e (patch) | |
tree | 12e2b27d3883378315ab32efb1d5b86359783494 /core/fxcrt/fx_coordinates.cpp | |
parent | 866d688766dbfc01d69f586bfa197d57df0d9b96 (diff) | |
download | pdfium-02d42b65b779e29737275a258cb9f30fa8449e5e.tar.xz |
Add CFX_Matrix::AsTuple().chromium/3591
Change-Id: I53c1b148cb8cdc77461766fc9996a0a3ce5f4cb7
Reviewed-on: https://pdfium-review.googlesource.com/c/44536
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_coordinates.cpp')
-rw-r--r-- | core/fxcrt/fx_coordinates.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/fxcrt/fx_coordinates.cpp b/core/fxcrt/fx_coordinates.cpp index 7d0d104122..fabde1e80b 100644 --- a/core/fxcrt/fx_coordinates.cpp +++ b/core/fxcrt/fx_coordinates.cpp @@ -300,6 +300,11 @@ std::ostream& operator<<(std::ostream& os, const CFX_RectF& rect) { } #endif // NDEBUG +std::tuple<float, float, float, float, float, float> CFX_Matrix::AsTuple() + const { + return {a, b, c, d, e, f}; +} + CFX_Matrix CFX_Matrix::GetInverse() const { CFX_Matrix inverse; float i = a * d - b * c; |