CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 55 of file GloballyPositioned.h.

Constructor & Destructor Documentation

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

Definition at line 57 of file GloballyPositioned.h.

57  :
58  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 60 of file GloballyPositioned.h.

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

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

Definition at line 64 of file GloballyPositioned.h.

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

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

Definition at line 68 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()().

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

Definition at line 74 of file GloballyPositioned.h.

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

74  {
76  }
Vector3DBase< T, LocalTag > LocalVector
Basic3DVector< T > multiplyInverse(const Basic3DVector< T > &v) const
const BasicVectorType & basicVector() const
Definition: PV3DBase.h:56

Member Data Documentation

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

Definition at line 79 of file GloballyPositioned.h.

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

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

Definition at line 80 of file GloballyPositioned.h.

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