diff options
Diffstat (limited to 'src/lib/pixel_quanta.cc')
| -rw-r--r-- | src/lib/pixel_quanta.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/pixel_quanta.cc b/src/lib/pixel_quanta.cc index 7c1d285cf..ad3ee1d7a 100644 --- a/src/lib/pixel_quanta.cc +++ b/src/lib/pixel_quanta.cc @@ -66,3 +66,17 @@ max (PixelQuanta const& a, PixelQuanta const& b) return { std::max(a.x, b.x), std::max(a.y, b.y) }; } + +bool +operator==(PixelQuanta const& a, PixelQuanta const& b) +{ + return a.x == b.x && a.y == b.y; +} + + +bool +operator!=(PixelQuanta const& a, PixelQuanta const& b) +{ + return a.x != b.x || a.y != b.y; +} + |
