Jpp
software
JGeometry2D
JRotator2D.hh
Go to the documentation of this file.
1
#ifndef __JROTATOR2D__
2
#define __JROTATOR2D__
3
4
#include <vector>
5
6
#include "
JGeometry2D/JMatrix2D.hh
"
7
#include "
JGeometry2D/JOmega2D.hh
"
8
9
10
/**
11
* \author mdejong
12
*/
13
14
namespace
JGEOMETRY2D
{}
15
namespace
JPP
{
using namespace
JGEOMETRY2D
; }
16
17
namespace
JGEOMETRY2D
{
18
19
20
/**
21
* Type definition of rotation set.
22
*/
23
typedef
std::vector<JRotation2D>
JRotator2D_t
;
24
25
26
/**
27
* Rotation set.
28
*/
29
class
JRotator2D
:
30
public
JRotator2D_t
31
{
32
public
:
33
/**
34
* Default constructor.
35
*/
36
JRotator2D
() :
37
JRotator2D_t
()
38
{}
39
40
41
/**
42
* Constructor.
43
*
44
* \param omega direction set
45
*/
46
JRotator2D
(
const
JOmega2D_t
& omega) :
47
JRotator2D_t
()
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
}
67
};
68
}
69
70
#endif
JGEOMETRY2D::JRotator2D::JRotator2D
JRotator2D(const JOmega2D_t &omega)
Constructor.
Definition:
JRotator2D.hh:46
std::vector
Definition:
JSTDTypes.hh:12
JGEOMETRY2D::JRotator2D_t
std::vector< JRotation2D > JRotator2D_t
Type definition of rotation set.
Definition:
JRotator2D.hh:23
JGEOMETRY2D
Auxiliary classes and methods for 2D geometrical objects and operations.
Definition:
JAngle2D.hh:18
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition:
JAAnetToolkit.hh:37
JGEOMETRY2D::JOmega2D_t
Base class for direction set.
Definition:
JOmega2D.hh:30
JOmega2D.hh
JGEOMETRY2D::JRotator2D
Rotation set.
Definition:
JRotator2D.hh:29
JGEOMETRY2D::JRotator2D::JRotator2D
JRotator2D()
Default constructor.
Definition:
JRotator2D.hh:36
JMatrix2D.hh
JTOOLS::r
data_type r[M+1]
Definition:
JPolint.hh:709
JGEOMETRY2D::JRotation2D
Rotation matrix.
Definition:
JRotation2D.hh:23
Generated by
1.8.16