Jpp  15.0.3
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
JGEOMETRY3D::JRotator3D Class Reference

Rotation set. More...

#include <JRotator3D.hh>

Inheritance diagram for JGEOMETRY3D::JRotator3D:
std::vector< JElement_t, JAllocator_t >

Public Member Functions

 JRotator3D ()
 Default constructor. More...
 
 JRotator3D (const JOmega3D_t &omega)
 Constructor. More...
 

Detailed Description

Rotation set.

Definition at line 29 of file JRotator3D.hh.

Constructor & Destructor Documentation

JGEOMETRY3D::JRotator3D::JRotator3D ( )
inline

Default constructor.

Definition at line 36 of file JRotator3D.hh.

36  :
37  JRotator3D_t()
38  {}
std::vector< JRotation3D > JRotator3D_t
Type definition of rotation set.
Definition: JRotator3D.hh:23
JGEOMETRY3D::JRotator3D::JRotator3D ( const JOmega3D_t omega)
inline

Constructor.

Any sequence of <= n rotations is equivalent to a single rotation corresponding to the nth input direction (i.e. X.rotate(JRotation3D(omega[n]))).
A final rotation is added to restore the original coordinate system.

Parameters
omegadirection set

Definition at line 50 of file JRotator3D.hh.

50  :
51  JRotator3D_t()
52  {
53  if (!omega.empty()) {
54 
55  JOmega3D_t::const_iterator dir = omega.begin();
56 
57  JRotation3D R(*dir);
58 
59  push_back(R);
60 
61  while (++dir != omega.end()) {
62 
63  JRotation3D r(*dir);
64 
65  push_back(r.mul(R.transpose()));
66 
67  R = JRotation3D(*dir);
68  }
69 
70  push_back(R.transpose());
71  }
72  }
Rotation matrix.
Definition: JRotation3D.hh:111
data_type r[M+1]
Definition: JPolint.hh:742
then usage $script[distance] fi case set_variable R
Definition: JDrawLED.sh:43
std::vector< JRotation3D > JRotator3D_t
Type definition of rotation set.
Definition: JRotator3D.hh:23

The documentation for this class was generated from the following file: