#include <CoordinateSets.h>
Public Member Functions | |
const T & | phi () const |
Polar2Cartesian (const T &r, const T &phi) | |
Construct from radius and polar angle. | |
const T & | r () const |
T | x () const |
T | y () const |
Private Attributes | |
T | phi_ |
T | r_ |
Converts polar 2D coordinates to cartesian coordinates. Note: Spherical coordinates (also sometimes called Polar 3D coordinates) are handled by class Spherical2Cartesian
Definition at line 14 of file CoordinateSets.h.
Geom::Polar2Cartesian< T >::Polar2Cartesian | ( | const T & | r, |
const T & | phi | ||
) | [inline] |
const T& Geom::Polar2Cartesian< T >::phi | ( | ) | const [inline] |
Definition at line 21 of file CoordinateSets.h.
References Geom::Polar2Cartesian< T >::phi_.
{return phi_;}
const T& Geom::Polar2Cartesian< T >::r | ( | ) | const [inline] |
Definition at line 20 of file CoordinateSets.h.
References Geom::Polar2Cartesian< T >::r_.
{return r_;}
T Geom::Polar2Cartesian< T >::x | ( | ) | const [inline] |
Definition at line 23 of file CoordinateSets.h.
References funct::cos(), Geom::Polar2Cartesian< T >::phi_, and Geom::Polar2Cartesian< T >::r_.
T Geom::Polar2Cartesian< T >::y | ( | ) | const [inline] |
Definition at line 24 of file CoordinateSets.h.
References Geom::Polar2Cartesian< T >::phi_, Geom::Polar2Cartesian< T >::r_, and funct::sin().
T Geom::Polar2Cartesian< T >::phi_ [private] |
Definition at line 28 of file CoordinateSets.h.
Referenced by Geom::Polar2Cartesian< T >::phi(), Geom::Polar2Cartesian< T >::x(), and Geom::Polar2Cartesian< T >::y().
T Geom::Polar2Cartesian< T >::r_ [private] |
Definition at line 27 of file CoordinateSets.h.
Referenced by Geom::Polar2Cartesian< T >::r(), Geom::Polar2Cartesian< T >::x(), and Geom::Polar2Cartesian< T >::y().