CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
GloballyPositioned< T >::ToLocal Class Reference

#include <GloballyPositioned.h>

Public Member Functions

LocalPoint operator() (const GlobalPoint &gp) const
 
LocalVector operator() (const GlobalVector &gv) const
 
 ToLocal (GloballyPositioned const &frame)
 
LocalPoint toLocal (const GlobalPoint &gp) const
 
LocalVector toLocal (const GlobalVector &gv) const
 

Public Attributes

PositionType thePos
 
RotationType theRot
 

Detailed Description

template<class T>
class GloballyPositioned< T >::ToLocal

Definition at line 44 of file GloballyPositioned.h.

Constructor & Destructor Documentation

template<class T>
GloballyPositioned< T >::ToLocal::ToLocal ( GloballyPositioned const &  frame)
inline

Definition at line 46 of file GloballyPositioned.h.

46 : thePos(frame.position()), theRot(frame.rotation().transposed()) {}

Member Function Documentation

template<class T>
LocalPoint GloballyPositioned< T >::ToLocal::operator() ( const GlobalPoint gp) const
inline

Definition at line 48 of file GloballyPositioned.h.

References GloballyPositioned< T >::ToLocal::toLocal().

48 { return toLocal(gp); }
LocalPoint toLocal(const GlobalPoint &gp) const
template<class T>
LocalVector GloballyPositioned< T >::ToLocal::operator() ( const GlobalVector gv) const
inline

Definition at line 50 of file GloballyPositioned.h.

References GloballyPositioned< T >::ToLocal::toLocal().

50 { return toLocal(gv); }
LocalPoint toLocal(const GlobalPoint &gp) const
template<class T>
LocalPoint GloballyPositioned< T >::ToLocal::toLocal ( const GlobalPoint gp) const
inline

Definition at line 52 of file GloballyPositioned.h.

References PV3DBase< T, PVType, FrameType >::basicVector(), TkRotation< T >::multiplyInverse(), GloballyPositioned< T >::ToLocal::thePos, and GloballyPositioned< T >::ToLocal::theRot.

Referenced by GloballyPositioned< T >::ToLocal::operator()().

52  {
54  }
Point3DBase< T, LocalTag > LocalPoint
Basic3DVector< T > multiplyInverse(const Basic3DVector< T > &v) const
const BasicVectorType & basicVector() const
Definition: PV3DBase.h:53
template<class T>
LocalVector GloballyPositioned< T >::ToLocal::toLocal ( const GlobalVector gv) const
inline

Definition at line 56 of file GloballyPositioned.h.

References PV3DBase< T, PVType, FrameType >::basicVector(), TkRotation< T >::multiplyInverse(), and GloballyPositioned< T >::ToLocal::theRot.

Vector3DBase< T, LocalTag > LocalVector
Basic3DVector< T > multiplyInverse(const Basic3DVector< T > &v) const
const BasicVectorType & basicVector() const
Definition: PV3DBase.h:53

Member Data Documentation

template<class T>
PositionType GloballyPositioned< T >::ToLocal::thePos
template<class T>
RotationType GloballyPositioned< T >::ToLocal::theRot