Data structure for comapss in three dimensions.
More...
#include <JCompass.hh>
Data structure for comapss in three dimensions.
This class implements the JMATH::JMath interface.
Definition at line 31 of file JCompass.hh.
◆ JCompass() [1/2]
JDETECTOR::JCompass::JCompass |
( |
| ) |
|
|
inline |
◆ JCompass() [2/2]
JDETECTOR::JCompass::JCompass |
( |
const double |
pitch, |
|
|
const double |
roll, |
|
|
const double |
yaw |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
pitch | pitch angle [rad] |
roll | roll angle [rad] |
yaw | yaw angle [rad] |
Definition at line 52 of file JCompass.hh.
◆ getCompass()
const JCompass& JDETECTOR::JCompass::getCompass |
( |
| ) |
const |
|
inline |
Get compass.
- Returns
- this compass
Definition at line 66 of file JCompass.hh.
68 return static_cast<const JCompass&>(*
this);
◆ setCompass()
void JDETECTOR::JCompass::setCompass |
( |
const JCompass & |
compass | ) |
|
|
inline |
Set compass.
- Parameters
-
Definition at line 77 of file JCompass.hh.
79 static_cast<JCompass&>(*
this) = compass;
◆ negate()
JCompass& JDETECTOR::JCompass::negate |
( |
| ) |
|
|
inline |
Negate compass.
- Returns
- this compass
Definition at line 88 of file JCompass.hh.
◆ add()
Add compass.
- Parameters
-
- Returns
- this compass
Definition at line 104 of file JCompass.hh.
◆ sub()
Subtract compass.
- Parameters
-
- Returns
- this compass
Definition at line 120 of file JCompass.hh.
◆ mul() [1/2]
JCompass& JDETECTOR::JCompass::mul |
( |
const double |
factor | ) |
|
|
inline |
Scale compass.
- Parameters
-
factor | multiplication factor |
- Returns
- this compass
Definition at line 136 of file JCompass.hh.
◆ div()
JCompass& JDETECTOR::JCompass::div |
( |
const double |
factor | ) |
|
|
inline |
Scale compass.
- Parameters
-
- Returns
- this compass
Definition at line 152 of file JCompass.hh.
◆ getPitch()
double JDETECTOR::JCompass::getPitch |
( |
| ) |
const |
|
inline |
Get pitch compass.
- Returns
- pitch compass
Definition at line 167 of file JCompass.hh.
◆ getRoll()
double JDETECTOR::JCompass::getRoll |
( |
| ) |
const |
|
inline |
Get roll compass.
- Returns
- roll compass
Definition at line 178 of file JCompass.hh.
◆ getYaw()
double JDETECTOR::JCompass::getYaw |
( |
| ) |
const |
|
inline |
Get yaw compass.
- Returns
- yaw compass
Definition at line 189 of file JCompass.hh.
◆ mul() [2/2]
Multiply with object.
- Parameters
-
- Returns
- result object
Definition at line 273 of file JMath.hh.
◆ operator>> [1/2]
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JCompass & |
compass |
|
) |
| |
|
friend |
Read compasss from input.
- Parameters
-
in | input stream |
compass | compasss |
- Returns
- input stream
Definition at line 202 of file JCompass.hh.
◆ operator<< [1/2]
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JCompass & |
compass |
|
) |
| |
|
friend |
Write compasss to output.
- Parameters
-
out | output stream |
compass | compass |
- Returns
- output stream
Definition at line 217 of file JCompass.hh.
◆ operator>> [2/2]
Read compasss from input.
- Parameters
-
- Returns
- reader
Definition at line 232 of file JCompass.hh.
◆ operator<< [2/2]
Write compasss to output.
- Parameters
-
out | writer |
compass | compasss |
- Returns
- writer
Definition at line 249 of file JCompass.hh.
253 out << compass.
__yaw;
◆ __pitch
double JDETECTOR::JCompass::__pitch |
|
protected |
◆ __roll
double JDETECTOR::JCompass::__roll |
|
protected |
◆ __yaw
double JDETECTOR::JCompass::__yaw |
|
protected |
The documentation for this class was generated from the following file: