Data structure for direction in three dimensions.  
 More...
#include <JDirection3D.hh>
Data structure for direction in three dimensions. 
Definition at line 32 of file JDirection3D.hh.
 
◆ JDirection3D() [1/6]
  
  
      
        
          | JGEOMETRY3D::JDirection3D::JDirection3D  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ JDirection3D() [2/6]
  
  
      
        
          | JGEOMETRY3D::JDirection3D::JDirection3D  | 
          ( | 
          const JVersor3D &  | 
          dir | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ JDirection3D() [3/6]
  
  
      
        
          | JGEOMETRY3D::JDirection3D::JDirection3D  | 
          ( | 
          const JAngle3D &  | 
          angle | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ JDirection3D() [4/6]
  
  
      
        
          | JGEOMETRY3D::JDirection3D::JDirection3D  | 
          ( | 
          const JVector3D &  | 
          pos | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ JDirection3D() [5/6]
  
  
      
        
          | JGEOMETRY3D::JDirection3D::JDirection3D  | 
          ( | 
          const JVersor3Z &  | 
          dir | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ JDirection3D() [6/6]
  
  
      
        
          | JGEOMETRY3D::JDirection3D::JDirection3D  | 
          ( | 
          const double  | 
          dx,  | 
         
        
           | 
           | 
          const double  | 
          dy,  | 
         
        
           | 
           | 
          const double  | 
          dz  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | dx | dx value  | 
    | dy | dy value  | 
    | dz | dz value  | 
  
   
Definition at line 94 of file JDirection3D.hh.
 
 
◆ getDirection() [1/2]
  
  
      
        
          | const JDirection3D& JGEOMETRY3D::JDirection3D::getDirection  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get direction. 
- Returns
 - direction 
 
Definition at line 106 of file JDirection3D.hh.
  108       return static_cast<const JDirection3D&>(*
this);
 
 
 
 
◆ getDirection() [2/2]
Get direction. 
- Returns
 - direction 
 
Definition at line 117 of file JDirection3D.hh.
  119       return static_cast<JDirection3D&>(*
this);
 
 
 
 
◆ setDirection()
  
  
      
        
          | void JGEOMETRY3D::JDirection3D::setDirection  | 
          ( | 
          const JDirection3D &  | 
          dir | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set direction. 
- Parameters
 - 
  
  
 
Definition at line 128 of file JDirection3D.hh.
  130       static_cast<JDirection3D&>(*
this) = dir;
 
 
 
 
◆ operator JAngle3D()
  
  
      
        
          | JGEOMETRY3D::JDirection3D::operator JAngle3D  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator JVector3D()
  
  
      
        
          | JGEOMETRY3D::JDirection3D::operator JVector3D  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ transform()
Transform. 
- Parameters
 - 
  
  
 
- Returns
 - this direction 
 
Definition at line 161 of file JDirection3D.hh.
 
 
◆ rotate() [1/5]
◆ rotate_back() [1/5]
Rotate back. 
- Parameters
 - 
  
  
 
- Returns
 - this direction 
 
Definition at line 193 of file JDirection3D.hh.
 
 
◆ rotate() [2/5]
Rotate around X-axis. 
- Parameters
 - 
  
  
 
- Returns
 - this direction 
 
Definition at line 209 of file JDirection3D.hh.
 
 
◆ rotate_back() [2/5]
Rotate back around X-axis. 
- Parameters
 - 
  
  
 
- Returns
 - this direction 
 
Definition at line 225 of file JDirection3D.hh.
 
 
◆ rotate() [3/5]
Rotate around Y-axis. 
- Parameters
 - 
  
  
 
- Returns
 - this direction 
 
Definition at line 241 of file JDirection3D.hh.
 
 
◆ rotate_back() [3/5]
Rotate back around Y-axis. 
- Parameters
 - 
  
  
 
- Returns
 - this direction 
 
Definition at line 257 of file JDirection3D.hh.
 
 
◆ rotate() [4/5]
Rotate around Z-axis. 
- Parameters
 - 
  
  
 
- Returns
 - this direction 
 
Definition at line 273 of file JDirection3D.hh.
 
 
◆ rotate_back() [4/5]
Rotate back around Z-axis. 
- Parameters
 - 
  
  
 
- Returns
 - this direction 
 
Definition at line 289 of file JDirection3D.hh.
 
 
◆ rotate() [5/5]
◆ rotate_back() [5/5]
Rotate back. 
- Parameters
 - 
  
  
 
- Returns
 - this position 
 
Definition at line 319 of file JDirection3D.hh.
 
 
◆ getDot() [1/5]
  
  
      
        
          | double JGEOMETRY3D::JDirection3D::getDot  | 
          ( | 
          const JAngle3D &  | 
          angle | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get dot product. 
- Parameters
 - 
  
  
 
- Returns
 - dot product 
 
Definition at line 333 of file JDirection3D.hh.
 
 
◆ getDot() [2/5]
  
  
      
        
          | double JGEOMETRY3D::JDirection3D::getDot  | 
          ( | 
          const JVector3D &  | 
          pos | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get dot product. 
- Parameters
 - 
  
  
 
- Returns
 - dot product 
 
Definition at line 348 of file JDirection3D.hh.
 
 
◆ getDot() [3/5]
  
  
      
        
          | double JGEOMETRY3D::JDirection3D::getDot  | 
          ( | 
          const JVersor3Z &  | 
          dir | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get dot product. 
- Parameters
 - 
  
  
 
- Returns
 - dot product 
 
Definition at line 363 of file JDirection3D.hh.
 
 
◆ getDot() [4/5]
  
  
      
        
          | double JGEOMETRY3D::JVersor3D::getDot | 
         
       
   | 
  
inline   | 
  
 
Get dot product. 
- Parameters
 - 
  
  
 
- Returns
 - dot product 
 
Definition at line 152 of file JVersor3D.hh.
  155         getDX() * versor.getDX() + 
 
  156         getDY() * versor.getDY() +
 
  157         getDZ() * versor.getDZ();
 
 
 
 
◆ negate()
  
  
      
        
          | JVersor3D& JGEOMETRY3D::JVersor3D::negate  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Negate versor. 
- Returns
 - this versor 
 
Definition at line 61 of file JVersor3D.hh.
 
 
◆ equals()
  
  
      
        
          | bool JGEOMETRY3D::JVersor3D::equals  | 
          ( | 
          const JVersor3D &  | 
          versor,  | 
         
        
           | 
           | 
          const double  | 
          precision = std::numeric_limits<double>::min()  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inlineinherited   | 
  
 
Check equality. 
- Parameters
 - 
  
  
 
- Returns
 - true if versors are equal; else false 
 
Definition at line 77 of file JVersor3D.hh.
   80       return (fabs(
getDX() - versor.
getDX()) <= precision &&
 
 
 
 
◆ getDX()
  
  
      
        
          | double JGEOMETRY3D::JVersor3D::getDX  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get x direction. 
- Returns
 - x direction 
 
Definition at line 91 of file JVersor3D.hh.
 
 
◆ getDY()
  
  
      
        
          | double JGEOMETRY3D::JVersor3D::getDY  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get y direction. 
- Returns
 - y direction 
 
Definition at line 102 of file JVersor3D.hh.
 
 
◆ getDZ()
  
  
      
        
          | double JGEOMETRY3D::JVersor3D::getDZ  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get z direction. 
- Returns
 - z direction 
 
Definition at line 113 of file JVersor3D.hh.
 
 
◆ getTheta()
  
  
      
        
          | double JGEOMETRY3D::JVersor3D::getTheta  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get theta angle. 
- Returns
 - theta angle [rad] 
 
Definition at line 124 of file JVersor3D.hh.
  128       else if (
__dz < -1.0)
 
 
 
 
◆ getPhi()
  
  
      
        
          | double JGEOMETRY3D::JVersor3D::getPhi  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get phi angle. 
- Returns
 - phi angle [rad] 
 
Definition at line 140 of file JVersor3D.hh.
 
 
◆ getDot() [5/5]
  
  
      
        
          | double JGEOMETRY3D::JVersor3D::getDot  | 
          ( | 
          const JVersor3D &  | 
          versor | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get dot product. 
- Parameters
 - 
  
  
 
- Returns
 - dot product 
 
Definition at line 152 of file JVersor3D.hh.
 
 
◆ normalise()
  
  
      
        
          | JVersor3D& JGEOMETRY3D::JVersor3D::normalise  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Normalise versor. 
This operation may set the result to the unit z-vector.
- Returns
 - this versor 
 
Definition at line 167 of file JVersor3D.hh.
 
 
◆ mul()
Multiply with object. 
- Parameters
 - 
  
  
 
- Returns
 - result object 
 
Definition at line 273 of file JMath.hh.
 
 
◆ operator>> [1/2]
  
  
      
        
          | std::istream& operator>>  | 
          ( | 
          std::istream &  | 
          in,  | 
         
        
           | 
           | 
          JDirection3D &  | 
          direction  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Read direction from input. 
- Parameters
 - 
  
    | in | input stream  | 
    | direction | direction  | 
  
   
- Returns
 - input stream 
 
Definition at line 379 of file JDirection3D.hh.
  381       in >> direction.
__dx >> direction.
__dy >> direction.
__dz;
 
 
 
 
◆ operator<< [1/2]
  
  
      
        
          | std::ostream& operator<<  | 
          ( | 
          std::ostream &  | 
          out,  | 
         
        
           | 
           | 
          const JDirection3D &  | 
          direction  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Write direction to output. 
- Parameters
 - 
  
    | out | output stream  | 
    | direction | direction  | 
  
   
- Returns
 - output stream 
 
Definition at line 394 of file JDirection3D.hh.
  396       out << direction.
getDX() << 
' ' << direction.
getDY() << 
' ' << direction.
getDZ();
 
 
 
 
◆ operator>> [2/2]
Read direction from input. 
- Parameters
 - 
  
    | in | reader  | 
    | direction | direction  | 
  
   
- Returns
 - reader 
 
Definition at line 409 of file JDirection3D.hh.
  411       return in >> direction.
__dx >> direction.
__dy >> direction.
__dz;
 
 
 
 
◆ operator<< [2/2]
Write direction to output. 
- Parameters
 - 
  
    | out | writer  | 
    | direction | direction  | 
  
   
- Returns
 - writer 
 
Definition at line 422 of file JDirection3D.hh.
  424       return out << direction.
getDX() << direction.
getDY() << direction.
getDZ();
 
 
 
 
◆ __dx
  
  
      
        
          | double JGEOMETRY3D::JVersor3D::__dx | 
         
       
   | 
  
protectedinherited   | 
  
 
 
◆ __dy
  
  
      
        
          | double JGEOMETRY3D::JVersor3D::__dy | 
         
       
   | 
  
protectedinherited   | 
  
 
 
◆ __dz
  
  
      
        
          | double JGEOMETRY3D::JVersor3D::__dz | 
         
       
   | 
  
protectedinherited   | 
  
 
 
The documentation for this class was generated from the following file: