From c6ae340c6222240dc45e9bba714c722cebece186 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 11 May 2021 13:07:21 -0400 Subject: Add general configuration setting mechanism --- src/Coord.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/Coord.hpp') diff --git a/src/Coord.hpp b/src/Coord.hpp index f77bc40..2d6a85a 100644 --- a/src/Coord.hpp +++ b/src/Coord.hpp @@ -24,6 +24,18 @@ struct Coord { double y{0.0}; }; +inline bool +operator==(const Coord& lhs, const Coord& rhs) +{ + return lhs.x == rhs.x && lhs.y == rhs.y; +} + +inline bool +operator!=(const Coord& lhs, const Coord& rhs) +{ + return !(lhs == rhs); +} + } // namespace patchage #endif // PATCHAGE_COORD_HPP -- cgit v1.2.1