CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

TkRotation2D< T > Class Template Reference

#include <newTkRotation.h>

List of all members.

Public Types

typedef Basic2DVector< TBasicVector

Public Member Functions

BasicVector rotate (const BasicVector &v) const
BasicVector rotateBack (const BasicVector &v) const
 TkRotation2D (const BasicVector &aX)
 TkRotation2D (mathSSE::Rot2< T > const &irot)
 TkRotation2D (const T *p)
 TkRotation2D ()
 TkRotation2D (const BasicVector &uX, const BasicVector &uY)
 TkRotation2D (T xx, T xy, T yx, T yy)
TkRotation2D transposed () const
BasicVector x () const
BasicVector y () const

Private Attributes

mathSSE::Rot2< Trot

Detailed Description

template<class T>
class TkRotation2D< T >

Definition at line 299 of file newTkRotation.h.


Member Typedef Documentation

template<class T>
typedef Basic2DVector<T> TkRotation2D< T >::BasicVector

Definition at line 302 of file newTkRotation.h.


Constructor & Destructor Documentation

template<class T>
TkRotation2D< T >::TkRotation2D ( ) [inline]

Definition at line 304 of file newTkRotation.h.

{}
template<class T>
TkRotation2D< T >::TkRotation2D ( mathSSE::Rot2< T > const &  irot) [inline]

Definition at line 305 of file newTkRotation.h.

: rot(irot){}
template<class T>
TkRotation2D< T >::TkRotation2D ( T  xx,
T  xy,
T  yx,
T  yy 
) [inline]

Definition at line 307 of file newTkRotation.h.

                                        :
    rot(xx,xy, yx,yy){}
template<class T>
TkRotation2D< T >::TkRotation2D ( const T p) [inline]

Definition at line 310 of file newTkRotation.h.

                            : 
    rot(p[0],p[1],
        p[2],p[3]) {}
template<class T>
TkRotation2D< T >::TkRotation2D ( const BasicVector aX) [inline]

Definition at line 314 of file newTkRotation.h.

                                         {
    
    BasicVector uX = aX.unit();
    BasicVector uY(-uX.y(),uX.x());
    
    rot.axis[0]= uX.v;
    rot.axis[1]= uY.v;
    
  }
template<class T>
TkRotation2D< T >::TkRotation2D ( const BasicVector uX,
const BasicVector uY 
) [inline]

Definition at line 325 of file newTkRotation.h.

                                                                {
    rot.axis[0]= uX.v;
    rot.axis[1]= uY.v;
  }

Member Function Documentation

template<class T>
BasicVector TkRotation2D< T >::rotate ( const BasicVector v) const [inline]

Definition at line 338 of file newTkRotation.h.

Referenced by ThirdHitPredictionFromInvParabola::transform().

                                                  {
    return rot.rotate(v.v);
  }
template<class T>
BasicVector TkRotation2D< T >::rotateBack ( const BasicVector v) const [inline]

Definition at line 342 of file newTkRotation.h.

Referenced by ThirdHitPredictionFromInvParabola::rangeRPhi(), and ThirdHitPredictionFromInvParabola::transformBack().

                                                      {
    return rot.rotateBack(v.v);
  }
template<class T>
TkRotation2D TkRotation2D< T >::transposed ( ) const [inline]

Definition at line 334 of file newTkRotation.h.

                                  {
    return rot.transpose();
  }
template<class T>
BasicVector TkRotation2D< T >::x ( ) const [inline]

Definition at line 330 of file newTkRotation.h.

Referenced by operator<< < double >(), and operator<< < float >().

{ return rot.axis[0];}
template<class T>
BasicVector TkRotation2D< T >::y ( ) const [inline]

Definition at line 331 of file newTkRotation.h.

Referenced by operator<< < double >(), and operator<< < float >().

{ return rot.axis[1];}

Member Data Documentation

template<class T>
mathSSE::Rot2<T> TkRotation2D< T >::rot [private]