From 974e99091c1d15a080829f2f7e7b14709a9b8a01 Mon Sep 17 00:00:00 2001
From: Maximilian Reininghaus <maximilian.reininghaus@kit.edu>
Date: Sat, 6 Jun 2020 13:20:07 +0200
Subject: [PATCH] added CoordinateSyste::operator== and !=

---
 Framework/Geometry/CoordinateSystem.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Framework/Geometry/CoordinateSystem.h b/Framework/Geometry/CoordinateSystem.h
index b0257c39e..64e51167e 100644
--- a/Framework/Geometry/CoordinateSystem.h
+++ b/Framework/Geometry/CoordinateSystem.h
@@ -117,6 +117,12 @@ namespace corsika::geometry {
     auto const* GetReference() const { return reference; }
 
     auto const& GetTransform() const { return transf; }
+
+    bool operator==(CoordinateSystem const& cs) const {
+      return reference == cs.reference && transf.matrix() == cs.transf.matrix();
+    }
+
+    bool operator!=(CoordinateSystem const& cs) const { return !(cs == *this); }
   };
 
 } // namespace corsika::geometry
-- 
GitLab