Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
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.
 
 JRotator3D (const JOmega3D_t &omega)
 Constructor.
 

Detailed Description

Rotation set.

Definition at line 29 of file JRotator3D.hh.

Constructor & Destructor Documentation

◆ JRotator3D() [1/2]

JGEOMETRY3D::JRotator3D::JRotator3D ( )
inline

Default constructor.

Definition at line 36 of file JRotator3D.hh.

36 :
38 {}
std::vector< JRotation3D > JRotator3D_t
Type definition of rotation set.
Definition JRotator3D.hh:23

◆ JRotator3D() [2/2]

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 :
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 }

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