IAP GITLAB

Skip to content
Snippets Groups Projects
Commit eb49cb5b authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

use eigen's vector normalization

parent 588707ca
No related branches found
No related tags found
2 merge requests!91Resolve "define further classes of processes (MaintenanceProcess?)",!76Resolve "Handling of boundary crossings in geometry tree"
......@@ -118,7 +118,7 @@ namespace corsika::geometry {
auto& operator-() const { return QuantityVector<dim>(-eVector); }
auto normalized() const { return (*this) * (1 / norm()); }
auto normalized() const { return QuantityVector<dim>(eVector.normalized()); }
auto operator==(QuantityVector<dim> const& p) const { return eVector == p.eVector; }
};
......
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