1 #ifndef GeometryVector_Geom_CoordinateSets_h
2 #define GeometryVector_Geom_CoordinateSets_h
20 const T&
r()
const {
return r_;}
43 const T&
r()
const {
return r_;}
45 const T&
z()
const {
return z_;}
71 const T&
r()
const {
return r_;}
94 const T&
x()
const {
return x_;}
95 const T&
y()
const {
return y_;}
96 const T&
z()
const {
return z_;}
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Sin< T >::type sin(const T &t)
Spherical2Cartesian(const T &theta, const T &phi, const T &mag)
Cartesian2Cartesian3D(const T &x, const T &y, const T &z)
Polar2Cartesian(const T &r, const T &phi)
Construct from radius and polar angle.
Cos< T >::type cos(const T &t)
Cylindrical2Cartesian(const T &r, const T &phi, const T &z)