| 
    Jpp
    17.3.2
    
   the software that should make you happy 
   | 
 
Data structure for direction in three dimensions. More...
#include <JDirection3D.hh>
  
 Public Member Functions | |
| JDirection3D () | |
| Default constructor.  More... | |
| JDirection3D (const JVersor3D &dir) | |
| Constructor.  More... | |
| JDirection3D (const JAngle3D &angle) | |
| Constructor.  More... | |
| JDirection3D (const JVector3D &pos) | |
| Constructor.  More... | |
| JDirection3D (const JVersor3Z &dir) | |
| Constructor.  More... | |
| JDirection3D (const double dx, const double dy, const double dz) | |
| Constructor.  More... | |
| const JDirection3D & | getDirection () const | 
| Get direction.  More... | |
| JDirection3D & | getDirection () | 
| Get direction.  More... | |
| void | setDirection (const JDirection3D &dir) | 
| Set direction.  More... | |
| operator JAngle3D () const | |
| Type conversion operator.  More... | |
| operator JVector3D () const | |
| Type conversion operator.  More... | |
| JDirection3D & | transform (const JMatrix3D &T) | 
| Transform.  More... | |
| JDirection3D & | rotate (const JRotation3D &R) | 
| Rotate.  More... | |
| JDirection3D & | rotate_back (const JRotation3D &R) | 
| Rotate back.  More... | |
| JDirection3D & | rotate (const JRotation3X &R) | 
| Rotate around X-axis.  More... | |
| JDirection3D & | rotate_back (const JRotation3X &R) | 
| Rotate back around X-axis.  More... | |
| JDirection3D & | rotate (const JRotation3Y &R) | 
| Rotate around Y-axis.  More... | |
| JDirection3D & | rotate_back (const JRotation3Y &R) | 
| Rotate back around Y-axis.  More... | |
| JDirection3D & | rotate (const JRotation3Z &R) | 
| Rotate around Z-axis.  More... | |
| JDirection3D & | rotate_back (const JRotation3Z &R) | 
| Rotate back around Z-axis.  More... | |
| JDirection3D & | rotate (const JQuaternion3D &Q) | 
| Rotate.  More... | |
| JDirection3D & | rotate_back (const JQuaternion3D &Q) | 
| Rotate back.  More... | |
| double | getDot (const JAngle3D &angle) const | 
| Get dot product.  More... | |
| double | getDot (const JVector3D &pos) const | 
| Get dot product.  More... | |
| double | getDot (const JVersor3Z &dir) const | 
| Get dot product.  More... | |
| JVersor3D & | negate () | 
| Negate versor.  More... | |
| bool | equals (const JVersor3D &versor, const double precision=std::numeric_limits< double >::min()) const | 
| Check equality.  More... | |
| double | getDX () const | 
| Get x direction.  More... | |
| double | getDY () const | 
| Get y direction.  More... | |
| double | getDZ () const | 
| Get z direction.  More... | |
| double | getTheta () const | 
| Get theta angle.  More... | |
| double | getPhi () const | 
| Get phi angle.  More... | |
| double | getDot (const JVersor3D &versor) const | 
| Get dot product.  More... | |
| JVersor3D & | getCross (const JVersor3D &first, const JVersor3D &second) | 
| Get cross product.  More... | |
| JVersor3D & | normalise () | 
| Normalise versor.  More... | |
| JFirst_t & | mul (const JSecond_t &object) | 
| Multiply with object.  More... | |
Protected Attributes | |
| double | __dx | 
| double | __dy | 
| double | __dz | 
Friends | |
| std::istream & | operator>> (std::istream &in, JDirection3D &direction) | 
| Read direction from input.  More... | |
| std::ostream & | operator<< (std::ostream &out, const JDirection3D &direction) | 
| Write direction to output.  More... | |
| JReader & | operator>> (JReader &in, JDirection3D &direction) | 
| Read direction from input.  More... | |
| JWriter & | operator<< (JWriter &out, const JDirection3D &direction) | 
| Write direction to output.  More... | |
Data structure for direction in three dimensions.
Definition at line 33 of file JDirection3D.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Constructor.
| dx | dx value | 
| dy | dy value | 
| dz | dz value | 
Definition at line 95 of file JDirection3D.hh.
      
  | 
  inline | 
Get direction.
Definition at line 107 of file JDirection3D.hh.
      
  | 
  inline | 
Get direction.
Definition at line 118 of file JDirection3D.hh.
      
  | 
  inline | 
Set direction.
| dir | direction | 
Definition at line 129 of file JDirection3D.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Transform.
| T | matrix | 
Definition at line 163 of file JDirection3D.hh.
      
  | 
  inline | 
Rotate.
| R | rotation matrix | 
Definition at line 179 of file JDirection3D.hh.
      
  | 
  inline | 
Rotate back.
| R | rotation matrix | 
Definition at line 195 of file JDirection3D.hh.
      
  | 
  inline | 
Rotate around X-axis.
| R | rotation matrix | 
Definition at line 211 of file JDirection3D.hh.
      
  | 
  inline | 
Rotate back around X-axis.
| R | rotation matrix | 
Definition at line 227 of file JDirection3D.hh.
      
  | 
  inline | 
Rotate around Y-axis.
| R | rotation matrix | 
Definition at line 243 of file JDirection3D.hh.
      
  | 
  inline | 
Rotate back around Y-axis.
| R | rotation matrix | 
Definition at line 259 of file JDirection3D.hh.
      
  | 
  inline | 
Rotate around Z-axis.
| R | rotation matrix | 
Definition at line 275 of file JDirection3D.hh.
      
  | 
  inline | 
Rotate back around Z-axis.
| R | rotation matrix | 
Definition at line 291 of file JDirection3D.hh.
      
  | 
  inline | 
Rotate.
| Q | quaternion | 
Definition at line 307 of file JDirection3D.hh.
      
  | 
  inline | 
Rotate back.
| Q | quaternion | 
Definition at line 321 of file JDirection3D.hh.
      
  | 
  inline | 
Get dot product.
| angle | angle | 
Definition at line 335 of file JDirection3D.hh.
      
  | 
  inline | 
Get dot product.
| pos | position | 
Definition at line 350 of file JDirection3D.hh.
      
  | 
  inline | 
Get dot product.
| dir | direction | 
Definition at line 365 of file JDirection3D.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Check equality.
| versor | versor | 
| precision | precision | 
Definition at line 81 of file JVersor3D.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Get dot product.
| versor | versor | 
Definition at line 156 of file JVersor3D.hh.
      
  | 
  inlineinherited | 
Get cross product.
Note that this versor should not overlap with the first or second versor,
| first | first versor | 
| second | second versor | 
Definition at line 173 of file JVersor3D.hh.
      
  | 
  inlineinherited | 
Normalise versor.
This operation may set the result to the unit z-vector.
Definition at line 192 of file JVersor3D.hh.
      
  | 
  inlineinherited | 
      
  | 
  friend | 
Read direction from input.
| in | input stream | 
| direction | direction | 
Definition at line 381 of file JDirection3D.hh.
      
  | 
  friend | 
Write direction to output.
| out | output stream | 
| direction | direction | 
Definition at line 398 of file JDirection3D.hh.
      
  | 
  friend | 
Read direction from input.
| in | reader | 
| direction | direction | 
Definition at line 417 of file JDirection3D.hh.
      
  | 
  friend | 
Write direction to output.
| out | writer | 
| direction | direction | 
Definition at line 430 of file JDirection3D.hh.
      
  | 
  protectedinherited | 
Definition at line 206 of file JVersor3D.hh.
      
  | 
  protectedinherited | 
Definition at line 207 of file JVersor3D.hh.
      
  | 
  protectedinherited | 
Definition at line 208 of file JVersor3D.hh.
 1.8.5