1 #ifndef GeometryVector_Geom_CoordinateSets_h 2 #define GeometryVector_Geom_CoordinateSets_h 19 const T&
r()
const {
return r_; }
41 const T&
r()
const {
return r_; }
43 const T&
z()
const {
return z_; }
68 const T&
r()
const {
return r_; }
89 const T&
x()
const {
return x_; }
90 const T&
y()
const {
return y_; }
91 const T&
z()
const {
return z_; }
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)
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Cylindrical2Cartesian(const T &r, const T &phi, const T &z)