From 48103863fedd8dd6f01a215eb2b2ef49be96e572 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck <wdconinc@gmail.com> Date: Thu, 17 Feb 2022 22:11:39 +0000 Subject: [PATCH] Revert "VectorXYZ(const VectorPolarType& v): use members, not getter" --- eic_data.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eic_data.yaml b/eic_data.yaml index 9dad43b..53cdde0 100644 --- a/eic_data.yaml +++ b/eic_data.yaml @@ -125,7 +125,7 @@ components: declaration: " VectorXYZ() : x{0}, y{0}, z{0} {}\n VectorXYZ(double xx, double yy, double zz) : x{static_cast<float>(xx)}, y{static_cast<float>(yy)}, z{static_cast<float>(zz)} {}\n - template<class VectorPolarType> VectorXYZ(const VectorPolarType& v) : VectorXYZ(v.x, v.y, v.z) {}\n + template<class VectorPolarType> VectorXYZ(const VectorPolarType& v) : VectorXYZ(v.x(), v.y(), v.z()) {}\n float& operator[](unsigned i) {return *(&x + i);}\n const float& operator[](unsigned i) const {return *(&x + i);}\n float mag() const {return std::hypot(x, y, z);}\n -- GitLab