| 
    Jpp
    pmt_effective_area_update
    
   the software that should make you happy 
   | 
 
Data structure for compass in three dimensions. More...
#include <JCompass.hh>
  
 Public Member Functions | |
| JCompass () | |
| Default constructor.  More... | |
| JCompass (const double yaw, const double pitch, const double roll) | |
| Constructor.  More... | |
| JCompass (const JAHRS &data, const JAHRSCalibration &calibration) | |
| Constructor.  More... | |
| JCompass (const JQuaternion3D &Q) | |
| Constructor.  More... | |
| const JCompass & | getCompass () const | 
| Get compass.  More... | |
| void | setCompass (const JCompass &compass) | 
| Set compass.  More... | |
| JRotation3D | getRotation () const | 
| Get rotation matrix.  More... | |
| JQuaternion3D | getQuaternion () const | 
| Get quaternion.  More... | |
| double | getYaw () const | 
| Get yaw compass.  More... | |
| double | getPitch () const | 
| Get pitch compass.  More... | |
| double | getRoll () const | 
| Get roll compass.  More... | |
| bool | equals (const JCompass &compass, const double precision=std::numeric_limits< double >::min()) const | 
| Check equality.  More... | |
| void | correct (const double declination, const double meridian) | 
| Correct compass for magnetic declination and meridian convergence angle.  More... | |
Protected Attributes | |
| double | yaw | 
| double | pitch | 
| double | roll | 
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 compass in three dimensions.
 Note that the z-axis of the KM3NeT reference system points up.
So, the yaw angle, measured by the compass is measured from North to East (since in the compass system z-axis points down).
Note also that the sign of the angle JCompass::pitch is maintained and the signs of the angles JCompass::yaw and JCompass::roll inverted when converting to/from a rotation matrix or quaternion.
This class implements the JMATH::JMath and JLANG::JEquals interfaces.
Definition at line 49 of file JCompass.hh.
      
  | 
  inline | 
      
  | 
  inline | 
Constructor.
| yaw | yaw angle [rad] | 
| pitch | pitch angle [rad] | 
| roll | roll angle [rad] | 
Definition at line 70 of file JCompass.hh.
      
  | 
  inline | 
      
  | 
  inline | 
Constructor.
| Q | quaternion | 
Definition at line 135 of file JCompass.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Check equality.
| compass | compass | 
| precision | numerical precision | 
Definition at line 259 of file JCompass.hh.
      
  | 
  inline | 
Correct compass for magnetic declination and meridian convergence angle.
| declination | magnetic declination [rad] | 
| meridian | meridian convergence angle [rad] | 
Definition at line 274 of file JCompass.hh.
      
  | 
  friend | 
Read compasss from input.
| in | input stream | 
| compass | compasss | 
Definition at line 288 of file JCompass.hh.
      
  | 
  friend | 
Write compasss to output.
| out | output stream | 
| compass | compass | 
Definition at line 303 of file JCompass.hh.
Read compasss from input.
| in | reader | 
| compass | compasss | 
Definition at line 318 of file JCompass.hh.
Write compasss to output.
| out | writer | 
| compass | compasss | 
Definition at line 335 of file JCompass.hh.
      
  | 
  protected | 
Definition at line 346 of file JCompass.hh.
      
  | 
  protected | 
Definition at line 347 of file JCompass.hh.
      
  | 
  protected | 
Definition at line 348 of file JCompass.hh.
 1.8.5