IAP GITLAB

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

new construtor for dimensionless QuantityVector

parent 186b10e5
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,13 @@ namespace corsika::geometry {
QuantityVector(Quantity a, Quantity b, Quantity c)
: eVector{a.magnitude(), b.magnitude(), c.magnitude()} {}
QuantityVector(double a, double b, double c)
: eVector{a, b, c} {
static_assert(
std::is_same_v<dim, phys::units::dimensionless_d>,
"initialization of dimensionful QuantityVector with pure numbers not allowed!");
}
QuantityVector(Eigen::Vector3d pBareVector)
: eVector(pBareVector) {}
......
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