Data structure for Euler angles in three dimensions.
More...
#include <JEulerAngle3D.hh>
Data structure for Euler angles in three dimensions.
This class implements the JMATH::JMath interface.
Definition at line 36 of file JEulerAngle3D.hh.
◆ JEulerAngle3D() [1/4]
JGEOMETRY3D::JEulerAngle3D::JEulerAngle3D |
( |
| ) |
|
|
inline |
◆ JEulerAngle3D() [2/4]
JGEOMETRY3D::JEulerAngle3D::JEulerAngle3D |
( |
const double |
alpha, |
|
|
const double |
beta, |
|
|
const double |
gamma |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
alpha | alpha angle [rad] |
beta | beta angle [rad] |
gamma | gamma angle [rad] |
Definition at line 57 of file JEulerAngle3D.hh.
◆ JEulerAngle3D() [3/4]
JGEOMETRY3D::JEulerAngle3D::JEulerAngle3D |
( |
const JAngle3D & |
angle | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 71 of file JEulerAngle3D.hh.
double getTheta() const
Get theta angle.
double getPhi() const
Get phi angle.
static const double PI
Mathematical constants.
◆ JEulerAngle3D() [4/4]
JGEOMETRY3D::JEulerAngle3D::JEulerAngle3D |
( |
const JVersor3D & |
versor | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 83 of file JEulerAngle3D.hh.
double getTheta() const
Get theta angle.
double getPhi() const
Get phi angle.
◆ getEulerAngle()
const JEulerAngle3D& JGEOMETRY3D::JEulerAngle3D::getEulerAngle |
( |
| ) |
const |
|
inline |
Get Euler angle.
- Returns
- this angle
Definition at line 95 of file JEulerAngle3D.hh.
Data structure for Euler angles in three dimensions.
◆ setEulerAngle()
void JGEOMETRY3D::JEulerAngle3D::setEulerAngle |
( |
const JEulerAngle3D & |
angle | ) |
|
|
inline |
◆ negate()
◆ add()
Add angle.
- Parameters
-
- Returns
- this angle
Definition at line 133 of file JEulerAngle3D.hh.
double getBeta() const
Get beta angle.
double getAlpha() const
Get alpha angle.
double getGamma() const
Get gamma angle.
◆ sub()
◆ mul() [1/2]
JEulerAngle3D& JGEOMETRY3D::JEulerAngle3D::mul |
( |
const double |
factor | ) |
|
|
inline |
Scale angle.
- Parameters
-
factor | multiplication factor |
- Returns
- this angle
Definition at line 165 of file JEulerAngle3D.hh.
◆ div()
JEulerAngle3D& JGEOMETRY3D::JEulerAngle3D::div |
( |
const double |
factor | ) |
|
|
inline |
◆ getAlpha()
double JGEOMETRY3D::JEulerAngle3D::getAlpha |
( |
| ) |
const |
|
inline |
◆ getBeta()
double JGEOMETRY3D::JEulerAngle3D::getBeta |
( |
| ) |
const |
|
inline |
◆ getGamma()
double JGEOMETRY3D::JEulerAngle3D::getGamma |
( |
| ) |
const |
|
inline |
◆ mul() [2/2]
template<class JFirst_t , class JSecond_t >
JFirst_t& JMATH::JMath< JFirst_t, JSecond_t >::mul |
( |
const JSecond_t & |
object | ) |
|
|
inlineinherited |
Multiply with object.
- Parameters
-
- Returns
- result object
Definition at line 354 of file JMath.hh.
356 return static_cast<JFirst_t&
>(*this) = JFirst_t().mul(
static_cast<const JFirst_t&
>(*
this),
object);
◆ operator>> [1/2]
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JEulerAngle3D & |
angle |
|
) |
| |
|
friend |
Read Euler angles from input.
- Parameters
-
in | input stream |
angle | Euler angles |
- Returns
- input stream
Definition at line 231 of file JEulerAngle3D.hh.
◆ operator<< [1/2]
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JEulerAngle3D & |
angle |
|
) |
| |
|
friend |
Write Euler angles to output.
- Parameters
-
out | output stream |
angle | Euler angle |
- Returns
- output stream
Definition at line 246 of file JEulerAngle3D.hh.
248 const JFormat format(out, getFormat<JAngle3D>(
JFormat_t(9, 5, std::ios::fixed | std::ios::showpos)));
250 out << format << angle.
getAlpha() <<
' '
251 << format << angle.
getBeta() <<
' '
◆ operator>> [2/2]
Read Euler angles from input.
- Parameters
-
in | reader |
angle | Euler angles |
- Returns
- reader
Definition at line 265 of file JEulerAngle3D.hh.
◆ operator<< [2/2]
Write Euler angles to output.
- Parameters
-
out | writer |
angle | Euler angles |
- Returns
- writer
Definition at line 282 of file JEulerAngle3D.hh.
◆ __alpha
double JGEOMETRY3D::JEulerAngle3D::__alpha |
|
protected |
◆ __beta
double JGEOMETRY3D::JEulerAngle3D::__beta |
|
protected |
◆ __gamma
double JGEOMETRY3D::JEulerAngle3D::__gamma |
|
protected |
The documentation for this class was generated from the following file: