| 
    Jpp
    
   | 
 
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... | |
| JAngle3D & | mul (const JNullType &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 31 of file JAngle3D.hh.
      
  | 
  inline | 
      
  | 
  inline | 
Constructor.
| theta | theta angle [rad] | 
| phi | phi angle [rad] | 
Definition at line 50 of file JAngle3D.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Scale angle.
| factor | multiplication factor | 
Definition at line 183 of file JAngle3D.hh.
      
  | 
  inline | 
Scale angle.
| factor | division factor | 
Definition at line 198 of file JAngle3D.hh.
      
  | 
  inline | 
Check equality.
| angle | angle | 
| precision | precision | 
Definition at line 214 of file JAngle3D.hh.
      
  | 
  inline | 
Get dot product.
| angle | angle | 
Definition at line 228 of file JAngle3D.hh.
      
  | 
  inline | 
Normalise angles.
Definition at line 245 of file JAngle3D.hh.
      
  | 
  inlineinherited | 
Multiply with object.
| object | object | 
Definition at line 273 of file JMath.hh.
      
  | 
  friend | 
Write angle from input.
| in | input stream | 
| angle | angle | 
Definition at line 266 of file JAngle3D.hh.
      
  | 
  friend | 
Write angle to output.
| out | output stream | 
| angle | angle | 
Definition at line 281 of file JAngle3D.hh.
Read angle from input.
| in | reader | 
| angle | angle | 
Definition at line 296 of file JAngle3D.hh.
Write angle to output.
| out | writer | 
| angle | angle | 
Definition at line 312 of file JAngle3D.hh.
      
  | 
  protected | 
Definition at line 321 of file JAngle3D.hh.
      
  | 
  protected | 
Definition at line 322 of file JAngle3D.hh.
 1.8.5