CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
mathSSE::Rot3< T > Struct Template Reference

#include <SSERot.h>

Public Member Functions

 Rot3 ()
 
 Rot3 (Vec4< T > ix, Vec4< T > iy, Vec4< T > iz)
 
 Rot3 (T xx, T xy, T xz, T yx, T yy, T yz, T zx, T zy, T zz)
 
Vec4< Trotate (Vec4< T > v) const
 
Rot3 rotate (Rot3 const &r) const
 
Vec4< TrotateBack (Vec4< T > v) const
 
Rot3 rotateBack (Rot3 const &r) const
 
Rot3 transpose () const
 
Vec4< Tx ()
 
Vec4< Ty ()
 
Vec4< Tz ()
 

Public Attributes

Vec4< Taxis [3]
 

Detailed Description

template<typename T>
struct mathSSE::Rot3< T >

Definition at line 18 of file SSERot.h.

Constructor & Destructor Documentation

template<typename T>
mathSSE::Rot3< T >::Rot3 ( )
inline

Definition at line 21 of file SSERot.h.

21  {
22  axis[0].arr[0]=1;
23  axis[1].arr[1]=1;
24  axis[2].arr[2]=1;
25  }
Vec4< T > axis[3]
Definition: SSERot.h:19
template<typename T>
mathSSE::Rot3< T >::Rot3 ( Vec4< T ix,
Vec4< T iy,
Vec4< T iz 
)
inline

Definition at line 27 of file SSERot.h.

27  {
28  axis[0] =ix;
29  axis[1] =iy;
30  axis[2] =iz;
31  }
Vec4< T > axis[3]
Definition: SSERot.h:19
template<typename T>
mathSSE::Rot3< T >::Rot3 ( T  xx,
T  xy,
T  xz,
T  yx,
T  yy,
T  yz,
T  zx,
T  zy,
T  zz 
)
inline

Definition at line 33 of file SSERot.h.

Member Function Documentation

template<typename T>
Vec4<T> mathSSE::Rot3< T >::rotate ( Vec4< T v) const
inline

Definition at line 51 of file SSERot.h.

51  {
52  return transpose().rotateBack(v);
53  }
Vec4< T > rotateBack(Vec4< T > v) const
Definition: SSERot.h:57
Rot3 transpose() const
Definition: SSERot.h:39
template<typename T>
Rot3 mathSSE::Rot3< T >::rotate ( Rot3< T > const &  r) const
inline

Definition at line 61 of file SSERot.h.

61  {
62  Rot3 tr = transpose();
63  return Rot3(tr.rotateBack(r.axis[0]),tr.rotateBack(r.axis[1]),tr.rotateBack(r.axis[2]));
64  }
Rot3 transpose() const
Definition: SSERot.h:39
constexpr Vec4< T > rotateBack(Vec4< T > v) const
Definition: ExtVec.h:238
Definition: ExtVec.h:201
template<typename T>
Vec4<T> mathSSE::Rot3< T >::rotateBack ( Vec4< T v) const
inline

Definition at line 57 of file SSERot.h.

Referenced by operator*().

57  {
58  return v.template get1<0>()*axis[0] + v.template get1<1>()*axis[1] + v.template get1<2>()*axis[2];
59  }
Vec4< T > axis[3]
Definition: SSERot.h:19
template<typename T>
Rot3 mathSSE::Rot3< T >::rotateBack ( Rot3< T > const &  r) const
inline

Definition at line 66 of file SSERot.h.

66  {
67  return Rot3(rotateBack(r.axis[0]),rotateBack(r.axis[1]),rotateBack(r.axis[2]));
68  }
Vec4< T > rotateBack(Vec4< T > v) const
Definition: SSERot.h:57
template<typename T>
Rot3 mathSSE::Rot3< T >::transpose ( ) const
inline

Definition at line 39 of file SSERot.h.

39  {
40  return Rot3( axis[0].arr[0], axis[1].arr[0], axis[2].arr[0],
41  axis[0].arr[1], axis[1].arr[1], axis[2].arr[1],
42  axis[0].arr[2], axis[1].arr[2], axis[2].arr[2]
43  );
44  }
Vec4< T > axis[3]
Definition: SSERot.h:19
template<typename T>
Vec4<T> mathSSE::Rot3< T >::x ( )
inline
template<typename T>
Vec4<T> mathSSE::Rot3< T >::y ( )
inline
template<typename T>
Vec4<T> mathSSE::Rot3< T >::z ( )
inline

Definition at line 48 of file SSERot.h.

Referenced by geometryXMLparser.Alignable::pos(), and ntupleDataFormat._HitObject::r3D().

48 { return axis[2];}
Vec4< T > axis[3]
Definition: SSERot.h:19

Member Data Documentation

template<typename T>
Vec4<T> mathSSE::Rot3< T >::axis[3]

Definition at line 19 of file SSERot.h.

Referenced by operator<<().