CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
GloballyPositioned< T >::ToLocal Class Reference

#include <GloballyPositioned.h>

Public Member Functions

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

Private Attributes

PositionType thePos
 
RotationType theRot
 

Detailed Description

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

Definition at line 56 of file GloballyPositioned.h.

Constructor & Destructor Documentation

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

Definition at line 58 of file GloballyPositioned.h.

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

Member Function Documentation

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

Definition at line 61 of file GloballyPositioned.h.

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

61  {
64  );
65  }
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 67 of file GloballyPositioned.h.

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

67  {
69  }
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
private

Definition at line 72 of file GloballyPositioned.h.

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

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

Definition at line 73 of file GloballyPositioned.h.

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