#include <CoordinateSets.h>
Public Member Functions | |
const T & | phi () const |
const T & | r () const |
Spherical2Cartesian (const T &theta, const T &phi, const T &mag) | |
const T & | theta () const |
T | x () const |
T | y () const |
T | z () const |
Private Attributes | |
T | phi_ |
T | r_ |
T | theta_ |
T | transv_ |
Converts spherical (or polar 3D) coordinates to cartesian coordinates.
Definition at line 60 of file CoordinateSets.h.
Geom::Spherical2Cartesian< T >::Spherical2Cartesian | ( | const T & | theta, |
const T & | phi, | ||
const T & | mag | ||
) | [inline] |
const T& Geom::Spherical2Cartesian< T >::phi | ( | ) | const [inline] |
Definition at line 70 of file CoordinateSets.h.
References Geom::Spherical2Cartesian< T >::phi_.
Referenced by Geom::Spherical2Cartesian< T >::x(), and Geom::Spherical2Cartesian< T >::y().
{return phi_;}
const T& Geom::Spherical2Cartesian< T >::r | ( | ) | const [inline] |
Definition at line 71 of file CoordinateSets.h.
References Geom::Spherical2Cartesian< T >::r_.
Referenced by Geom::Spherical2Cartesian< T >::z().
{return r_;}
const T& Geom::Spherical2Cartesian< T >::theta | ( | ) | const [inline] |
Definition at line 69 of file CoordinateSets.h.
References Geom::Spherical2Cartesian< T >::theta_.
Referenced by Geom::Spherical2Cartesian< T >::z().
{return theta_;}
T Geom::Spherical2Cartesian< T >::x | ( | ) | const [inline] |
Definition at line 73 of file CoordinateSets.h.
References funct::cos(), Geom::Spherical2Cartesian< T >::phi(), and Geom::Spherical2Cartesian< T >::transv_.
T Geom::Spherical2Cartesian< T >::y | ( | ) | const [inline] |
Definition at line 74 of file CoordinateSets.h.
References Geom::Spherical2Cartesian< T >::phi(), funct::sin(), and Geom::Spherical2Cartesian< T >::transv_.
T Geom::Spherical2Cartesian< T >::z | ( | ) | const [inline] |
Definition at line 75 of file CoordinateSets.h.
References funct::cos(), Geom::Spherical2Cartesian< T >::r(), and Geom::Spherical2Cartesian< T >::theta().
T Geom::Spherical2Cartesian< T >::phi_ [private] |
Definition at line 79 of file CoordinateSets.h.
Referenced by Geom::Spherical2Cartesian< T >::phi().
T Geom::Spherical2Cartesian< T >::r_ [private] |
Definition at line 80 of file CoordinateSets.h.
Referenced by Geom::Spherical2Cartesian< T >::r().
T Geom::Spherical2Cartesian< T >::theta_ [private] |
Definition at line 78 of file CoordinateSets.h.
Referenced by Geom::Spherical2Cartesian< T >::theta().
T Geom::Spherical2Cartesian< T >::transv_ [private] |
Definition at line 81 of file CoordinateSets.h.
Referenced by Geom::Spherical2Cartesian< T >::x(), and Geom::Spherical2Cartesian< T >::y().