| 
    Jpp
    18.0.0-rc.1
    
   the software that should make you happy 
   | 
 
Data structure for angles in three dimensions. More...
#include <JAngle3D.hh>
  
 Public Member Functions | |
| JAngle3D () | |
| Default constructor.  More... | |
| JAngle3D (const double theta, const double phi) | |
| Constructor.  More... | |
| JAngle3D (const double x, const double y, const double z) | |
| Constructor.  More... | |
| double | getTheta () const | 
| Get theta angle.  More... | |
| double | getPhi () const | 
| Get phi angle.  More... | |
| double | getDX () const | 
| Get x direction.  More... | |
| double | getDY () const | 
| Get y direction.  More... | |
| double | getDZ () const | 
| Get z direction.  More... | |
| JAngle3D & | negate () | 
| Negate angle.  More... | |
| JAngle3D & | add (const JAngle3D &angle) | 
| Add angle.  More... | |
| JAngle3D & | sub (const JAngle3D &angle) | 
| Subtract angle.  More... | |
| JAngle3D & | mul (const double factor) | 
| Scale angle.  More... | |
| JAngle3D & | div (const double factor) | 
| Scale angle.  More... | |
| bool | equals (const JAngle3D &angle, const double precision=std::numeric_limits< double >::min()) const | 
| Check equality.  More... | |
| double | getDot (const JAngle3D &angle) const | 
| Get dot product.  More... | |
| JAngle3D & | normalise () | 
| Normalise angles.  More... | |
| JFirst_t & | mul (const JSecond_t &object) | 
| Multiply with object.  More... | |
Protected Attributes | |
| double | __theta | 
| double | __phi | 
Friends | |
| std::istream & | operator>> (std::istream &in, JAngle3D &angle) | 
| Write angle from input.  More... | |
| std::ostream & | operator<< (std::ostream &out, const JAngle3D &angle) | 
| Write angle to output.  More... | |
| JReader & | operator>> (JReader &in, JAngle3D &angle) | 
| Read angle from input.  More... | |
| JWriter & | operator<< (JWriter &out, const JAngle3D &angle) | 
| Write angle to output.  More... | |
Data structure for angles in three dimensions.
This class serves as input to the rotation matrix JRotation3D.
Definition at line 33 of file JAngle3D.hh.
      
  | 
  inline | 
      
  | 
  inline | 
Constructor.
| theta | theta angle [rad] | 
| phi | phi angle [rad] | 
Definition at line 52 of file JAngle3D.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Get x direction.
Definition at line 108 of file JAngle3D.hh.
      
  | 
  inline | 
Get y direction.
Definition at line 119 of file JAngle3D.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Scale angle.
| factor | multiplication factor | 
Definition at line 185 of file JAngle3D.hh.
      
  | 
  inline | 
Scale angle.
| factor | division factor | 
Definition at line 200 of file JAngle3D.hh.
      
  | 
  inline | 
Check equality.
| angle | angle | 
| precision | precision | 
Definition at line 216 of file JAngle3D.hh.
      
  | 
  inline | 
Get dot product.
| angle | angle | 
Definition at line 230 of file JAngle3D.hh.
      
  | 
  inline | 
Normalise angles.
Definition at line 247 of file JAngle3D.hh.
      
  | 
  inlineinherited | 
      
  | 
  friend | 
Write angle from input.
| in | input stream | 
| angle | angle | 
Definition at line 268 of file JAngle3D.hh.
      
  | 
  friend | 
Write angle to output.
| out | output stream | 
| angle | angle | 
Definition at line 283 of file JAngle3D.hh.
Read angle from input.
| in | reader | 
| angle | angle | 
Definition at line 301 of file JAngle3D.hh.
Write angle to output.
| out | writer | 
| angle | angle | 
Definition at line 317 of file JAngle3D.hh.
      
  | 
  protected | 
Definition at line 326 of file JAngle3D.hh.
      
  | 
  protected | 
Definition at line 327 of file JAngle3D.hh.
 1.8.5