#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.
|
inline |
Construct from polar angle, azimuthal angle, and radius.
The radius in the spherical frame is the magnitude of the vector.
Definition at line 65 of file CoordinateSets.h.
|
inline |
Definition at line 70 of file CoordinateSets.h.
References Geom::Spherical2Cartesian< T >::phi_.
Referenced by Particle.Particle::__str__(), Geom::Spherical2Cartesian< T >::x(), and Geom::Spherical2Cartesian< T >::y().
|
inline |
Definition at line 71 of file CoordinateSets.h.
References Geom::Spherical2Cartesian< T >::r_.
Referenced by Geom::Spherical2Cartesian< T >::z().
|
inline |
Definition at line 69 of file CoordinateSets.h.
References Geom::Spherical2Cartesian< T >::theta_.
Referenced by Geom::Spherical2Cartesian< T >::z(), and Tau.Tau::zImpact().
|
inline |
Definition at line 73 of file CoordinateSets.h.
References funct::cos(), Geom::Spherical2Cartesian< T >::phi(), and Geom::Spherical2Cartesian< T >::transv_.
Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), geometryXMLparser.Alignable::pos(), and Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget().
|
inline |
Definition at line 74 of file CoordinateSets.h.
References Geom::Spherical2Cartesian< T >::phi(), funct::sin(), and Geom::Spherical2Cartesian< T >::transv_.
Referenced by svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), geometryXMLparser.Alignable::pos(), and Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget().
|
inline |
Definition at line 75 of file CoordinateSets.h.
References funct::cos(), Geom::Spherical2Cartesian< T >::r(), and Geom::Spherical2Cartesian< T >::theta().
Referenced by geometryXMLparser.Alignable::pos().
|
private |
Definition at line 79 of file CoordinateSets.h.
Referenced by Geom::Spherical2Cartesian< T >::phi().
|
private |
Definition at line 80 of file CoordinateSets.h.
Referenced by Geom::Spherical2Cartesian< T >::r().
|
private |
Definition at line 78 of file CoordinateSets.h.
Referenced by Geom::Spherical2Cartesian< T >::theta().
|
private |
Definition at line 81 of file CoordinateSets.h.
Referenced by Geom::Spherical2Cartesian< T >::x(), and Geom::Spherical2Cartesian< T >::y().