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_;}
66 theta_(theta),
phi_(phi),
r_(mag),
67 transv_(
sin(theta)*mag) {}
69 const T&
theta()
const {
return theta_;}
71 const T&
r()
const {
return r_;}
92 x_(x), y_(y), z_(z) {}
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)
Geom::Theta< T > theta() const
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)