CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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

◆ ToLocal()

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

◆ operator()() [1/2]

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

Definition at line 48 of file GloballyPositioned.h.

References runTauDisplay::gp, and GloballyPositioned< T >::ToLocal::toLocal().

48 { return toLocal(gp); }
LocalPoint toLocal(const GlobalPoint &gp) const

◆ operator()() [2/2]

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

◆ toLocal() [1/2]

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(), runTauDisplay::gp, TkRotation< T >::multiplyInverse(), GloballyPositioned< T >::ToLocal::thePos, and GloballyPositioned< T >::ToLocal::theRot.

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

52  {
53  return LocalPoint(theRot.multiplyInverse(gp.basicVector() - thePos.basicVector()));
54  }
const BasicVectorType & basicVector() const
Definition: PV3DBase.h:53
Basic3DVector< T > multiplyInverse(const Basic3DVector< T > &v) const
Point3DBase< T, LocalTag > LocalPoint

◆ toLocal() [2/2]

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
const BasicVectorType & basicVector() const
Definition: PV3DBase.h:53
Basic3DVector< T > multiplyInverse(const Basic3DVector< T > &v) const

Member Data Documentation

◆ thePos

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

Definition at line 59 of file GloballyPositioned.h.

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

◆ theRot

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

Definition at line 60 of file GloballyPositioned.h.

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