Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JGEOMETRY2D::JRotator2D Class Reference

Rotation set. More...

#include <JRotator2D.hh>

Inheritance diagram for JGEOMETRY2D::JRotator2D:
std::vector< JElement_t, JAllocator_t >

Public Member Functions

 JRotator2D ()
 Default constructor.
 
 JRotator2D (const JOmega2D_t &omega)
 Constructor.
 

Detailed Description

Rotation set.

Definition at line 29 of file JRotator2D.hh.

Constructor & Destructor Documentation

◆ JRotator2D() [1/2]

JGEOMETRY2D::JRotator2D::JRotator2D ( )
inline

Default constructor.

Definition at line 36 of file JRotator2D.hh.

36 :
38 {}
std::vector< JRotation2D > JRotator2D_t
Type definition of rotation set.
Definition JRotator2D.hh:23

◆ JRotator2D() [2/2]

JGEOMETRY2D::JRotator2D::JRotator2D ( const JOmega2D_t & omega)
inline

Constructor.

Parameters
omegadirection set

Definition at line 46 of file JRotator2D.hh.

46 :
48 {
49 if (!omega.empty()) {
50
51 JRotation2D R(*omega.begin());
52
53 push_back(R);
54
55 for (JOmega2D_t::const_iterator i = omega.begin(); ++i != omega.end(); ) {
56
57 JRotation2D r(*i);
58
59 push_back(r.mul(R.transpose()));
60
61 R = JRotation2D(*i);
62 }
63
64 push_back(R.transpose());
65 }
66 }

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