diff options
author | Howard Trickey <howard.trickey@gmail.com> | 2020-08-22 14:30:13 +0300 |
---|---|---|
committer | Howard Trickey <howard.trickey@gmail.com> | 2020-08-22 14:30:13 +0300 |
commit | 9810cfa1e83f173ccbdc1c3335183f93529838b5 (patch) | |
tree | 3f3d79feb348f1b41125c965ec2ce632a3a200f4 /source/blender/blenlib/BLI_mpq2.hh | |
parent | 0a6ef6950959ae0e86a5a7ff12262e78eb852a9f (diff) |
Addressed comments of reviewers on D8623.
Almost all changes asked for by Campbell and Jacques have been
addressed. The clang-tidy fixes will happen in the next commit.
Diffstat (limited to 'source/blender/blenlib/BLI_mpq2.hh')
-rw-r--r-- | source/blender/blenlib/BLI_mpq2.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_mpq2.hh b/source/blender/blenlib/BLI_mpq2.hh index a37140da5ec..86a7b0ac3a8 100644 --- a/source/blender/blenlib/BLI_mpq2.hh +++ b/source/blender/blenlib/BLI_mpq2.hh @@ -116,6 +116,11 @@ struct mpq2 { return a.x == b.x && a.y == b.y; } + friend bool operator!=(const mpq2 &a, const mpq2 &b) + { + return a.x != b.x || a.y != b.y; + } + friend std::ostream &operator<<(std::ostream &stream, const mpq2 &v) { stream << "(" << v.x << ", " << v.y << ")"; |