CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
Geom::Polar2Cartesian< T > Class Template Reference

#include <CoordinateSets.h>

Public Member Functions

const T & phi () const
 
 Polar2Cartesian (const T &r, const T &phi)
 Construct from radius and polar angle. More...
 
const T & r () const
 
x () const
 
y () const
 

Private Attributes

phi_
 
r_
 

Detailed Description

template<typename T>
class Geom::Polar2Cartesian< T >

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.

Constructor & Destructor Documentation

template<typename T >
Geom::Polar2Cartesian< T >::Polar2Cartesian ( const T &  r,
const T &  phi 
)
inline

Construct from radius and polar angle.

Definition at line 17 of file CoordinateSets.h.

17  :
18  r_(r), phi_(phi) {}
const T & phi() const
const T & r() const

Member Function Documentation

template<typename T >
const T& Geom::Polar2Cartesian< T >::phi ( ) const
inline

Definition at line 21 of file CoordinateSets.h.

References Geom::Polar2Cartesian< T >::phi_.

21 {return phi_;}
template<typename T >
const T& Geom::Polar2Cartesian< T >::r ( ) const
inline

Definition at line 20 of file CoordinateSets.h.

References Geom::Polar2Cartesian< T >::r_.

20 {return r_;}
template<typename T >
T Geom::Polar2Cartesian< T >::x ( ) const
inline
template<typename T >
T Geom::Polar2Cartesian< T >::y ( ) const
inline

Member Data Documentation

template<typename T >
T Geom::Polar2Cartesian< T >::phi_
private
template<typename T >
T Geom::Polar2Cartesian< T >::r_
private