IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 974e9909 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan: Committed by Felix Riehn
Browse files

added CoordinateSyste::operator== and !=

parent f1e64c40
No related branches found
No related tags found
2 merge requests!234WIP: Initial example of python as script language from C++,!204Resolve "boost & coordinate system in process::sibyll::Interaction"
...@@ -117,6 +117,12 @@ namespace corsika::geometry { ...@@ -117,6 +117,12 @@ namespace corsika::geometry {
auto const* GetReference() const { return reference; } auto const* GetReference() const { return reference; }
auto const& GetTransform() const { return transf; } 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 } // namespace corsika::geometry
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment