|
Jpp
|
Data structure for comapss in three dimensions. More...
#include <JCompass.hh>
Public Member Functions | |
| JCompass () | |
| Default constructor. More... | |
| JCompass (const double pitch, const double roll, const double yaw) | |
| Constructor. More... | |
| const JCompass & | getCompass () const |
| Get compass. More... | |
| void | setCompass (const JCompass &compass) |
| Set compass. More... | |
| JCompass & | negate () |
| Negate compass. More... | |
| JCompass & | add (const JCompass &compass) |
| Add compass. More... | |
| JCompass & | sub (const JCompass &compass) |
| Subtract compass. More... | |
| JCompass & | mul (const double factor) |
| Scale compass. More... | |
| JCompass & | div (const double factor) |
| Scale compass. More... | |
| double | getPitch () const |
| Get pitch compass. More... | |
| double | getRoll () const |
| Get roll compass. More... | |
| double | getYaw () const |
| Get yaw compass. More... | |
| JCompass & | mul (const JNullType &object) |
| Multiply with object. More... | |
Protected Attributes | |
| double | __pitch |
| double | __roll |
| double | __yaw |
Friends | |
| std::istream & | operator>> (std::istream &in, JCompass &compass) |
| Read compasss from input. More... | |
| std::ostream & | operator<< (std::ostream &out, const JCompass &compass) |
| Write compasss to output. More... | |
| JReader & | operator>> (JReader &in, JCompass &compass) |
| Read compasss from input. More... | |
| JWriter & | operator<< (JWriter &out, const JCompass &compass) |
| Write compasss to output. More... | |
Data structure for comapss in three dimensions.
This class implements the JMATH::JMath interface.
Definition at line 31 of file JCompass.hh.
|
inline |
|
inline |
Constructor.
| pitch | pitch angle [rad] |
| roll | roll angle [rad] |
| yaw | yaw angle [rad] |
Definition at line 52 of file JCompass.hh.
|
inline |
|
inline |
|
inline |
Add compass.
| compass | compass |
Definition at line 104 of file JCompass.hh.
Subtract compass.
| compass | compass |
Definition at line 120 of file JCompass.hh.
|
inline |
Scale compass.
| factor | multiplication factor |
Definition at line 136 of file JCompass.hh.
|
inline |
Scale compass.
| factor | division factor |
Definition at line 152 of file JCompass.hh.
|
inline |
|
inline |
|
inline |
|
inlineinherited |
Multiply with object.
| object | object |
Definition at line 273 of file JMath.hh.
|
friend |
Read compasss from input.
| in | input stream |
| compass | compasss |
Definition at line 202 of file JCompass.hh.
|
friend |
Write compasss to output.
| out | output stream |
| compass | compass |
Definition at line 217 of file JCompass.hh.
Read compasss from input.
| in | reader |
| compass | compasss |
Definition at line 232 of file JCompass.hh.
Write compasss to output.
| out | writer |
| compass | compasss |
Definition at line 249 of file JCompass.hh.
|
protected |
Definition at line 260 of file JCompass.hh.
|
protected |
Definition at line 261 of file JCompass.hh.
|
protected |
Definition at line 262 of file JCompass.hh.
1.8.5