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.

17 : r_(r), phi_(phi) {}

Member Function Documentation

◆ phi()

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

Definition at line 20 of file CoordinateSets.h.

20 { return phi_; }

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

Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().

◆ r()

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

Definition at line 19 of file CoordinateSets.h.

19 { return r_; }

References Geom::Polar2Cartesian< T >::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
Geom::Polar2Cartesian::phi_
T phi_
Definition: CoordinateSets.h:27
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
Geom::Polar2Cartesian::r_
T r_
Definition: CoordinateSets.h:26
Geom::Polar2Cartesian::phi
const T & phi() const
Definition: CoordinateSets.h:20
Geom::Polar2Cartesian::r
const T & r() const
Definition: CoordinateSets.h:19