Skip to content
Snippets Groups Projects
Commit d5049390 authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

Merge branch 'fix_vectorpolar' into 'master'

Fix issue in VectorPolar

See merge request !39
parents e6305c36 b2e9979e
No related branches found
No related tags found
1 merge request!39Fix issue in VectorPolar
Pipeline #15318 canceled
...@@ -144,7 +144,7 @@ components: ...@@ -144,7 +144,7 @@ components:
template<class VectorXYZType> VectorPolar(const VectorXYZType& v) : VectorPolar(v.r(), v.theta(), v.phi()) {}\n template<class VectorXYZType> VectorPolar(const VectorXYZType& v) : VectorPolar(v.r(), v.theta(), v.phi()) {}\n
float mag() const {return r;}\n float mag() const {return r;}\n
float x() const {return r * cos(phi) * sin(theta);}\n float x() const {return r * cos(phi) * sin(theta);}\n
float y() const {return r * sin(phi) * cos(theta);}\n float y() const {return r * sin(phi) * sin(theta);}\n
float z() const {return r * cos(theta);}\n float z() const {return r * cos(theta);}\n
float eta() const {return -log(tan(0.5*theta));}\n float eta() const {return -log(tan(0.5*theta));}\n
operator std::tuple<float, float, float>() {return {r, theta, phi};}\n operator std::tuple<float, float, float>() {return {r, theta, phi};}\n
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment