CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
Geom::Polar2Cartesian< T > Class Template Reference

#include <CoordinateSets.h>

Public Member Functions

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

Private Attributes

T phi_
 
T 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

◆ Polar2Cartesian()

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.

Member Function Documentation

◆ phi()

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

◆ r()

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

Definition at line 19 of file CoordinateSets.h.

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

19 { return r_; }

◆ x()

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

◆ y()

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

Member Data Documentation

◆ phi_

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

◆ r_

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