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
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.

Referenced by mathSSE::Rot3< align::Scalar >::rotate(), mathSSE::Rot3< align::Scalar >::rotateBack(), and mathSSE::Rot3< align::Scalar >::transpose().

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.

33  {
34  axis[0].set(xx,xy,xz);
35  axis[1].set(yx,yy,yz);
36  axis[2].set(zx,zy,zz);
37  }
Vec4< T > axis[3]
Definition: SSERot.h:19

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
Definition: ExtVec.h:176
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*(), mathSSE::Rot3< align::Scalar >::rotate(), and mathSSE::Rot3< align::Scalar >::rotateBack().

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.

Referenced by mathSSE::Rot3< align::Scalar >::rotate().

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().

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]