diff options
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 << ")"; |