Location of detector.  
 More...
#include <JAstronomy.hh>
Location of detector. 
Definition at line 827 of file JAstronomy.hh.
 
◆ JGeographicalLocation() [1/4]
  
  
      
        
          | JASTRONOMY::JGeographicalLocation::JGeographicalLocation  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ JGeographicalLocation() [2/4]
  
  
      
        
          | JASTRONOMY::JGeographicalLocation::JGeographicalLocation  | 
          ( | 
          const double |           latitude,  | 
         
        
           | 
           | 
          const double |           longitude ) | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | latitude | latitude  | 
    | longitude | longitude  | 
  
   
Definition at line 843 of file JAstronomy.hh.
  844                                                  :
  846    {}
angle_type_rad()
Default constructor.
 
 
 
 
◆ JGeographicalLocation() [3/4]
  
  
      
        
          | JASTRONOMY::JGeographicalLocation::JGeographicalLocation  | 
          ( | 
          const int |           degreesNorth,  | 
         
        
           | 
           | 
          const int |           minutesNorth,  | 
         
        
           | 
           | 
          const int |           degreesEast,  | 
         
        
           | 
           | 
          const int |           minutesEast ) | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | degreesNorth | degrees North  | 
    | minutesNorth | minutes North  | 
    | degreesEast | degrees East  | 
    | minutesEast | minutes East  | 
  
   
Definition at line 857 of file JAstronomy.hh.
  860                                                 :
  862                     getRadians((
double) degreesEast  + (
double) minutesEast  / 60.0))
 
  863    {}
double getRadians(const double angle)
Convert angle to radians.
 
 
 
 
◆ JGeographicalLocation() [4/4]
  
  
      
        
          | JASTRONOMY::JGeographicalLocation::JGeographicalLocation  | 
          ( | 
          const JAngle3D & |           angle | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ getGeographicalLocation()
Get geographical location. 
- Returns
 - geographical location 
 
Definition at line 881 of file JAstronomy.hh.
  882    {
  884    }
JGeographicalLocation()
Default constructor.
 
 
 
 
◆ operator JAngle3D()
  
  
      
        
          | JASTRONOMY::JGeographicalLocation::operator JAngle3D  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Type conversion operator. 
- Returns
 - polar angles [rad] 
 
Definition at line 892 of file JAstronomy.hh.
 
 
◆ getLatitude()
  
  
      
        
          | double JASTRONOMY::JGeographicalLocation::getLatitude  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getLongitude()
  
  
      
        
          | double JASTRONOMY::JGeographicalLocation::getLongitude  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getDot()
Dot product. 
- Parameters
 - 
  
  
 
- Returns
 - dot product 
 
Definition at line 908 of file JAstronomy.hh.
  909    {
  910      return
  911        sin(this->
_theta_) * sin(location._theta_) +
 
  912        cos(this->
_theta_) * cos(location._theta_) * cos(this->
_phi_ - location._phi_);
 
  913    }
 
 
 
◆ set()
◆ equals()
  
  
      
        
          | bool JASTRONOMY::angle_type::equals  | 
          ( | 
          const angle_type & |           angle,  | 
         
        
           | 
           | 
          const double |           precision = std::numeric_limits<double>::min() ) const | 
         
       
   | 
  
inlineinherited   | 
  
 
Check equality. 
- Parameters
 - 
  
    | angle | pair of angles  | 
    | precision | precision  | 
  
   
- Returns
 - true if angles are equal; else false 
 
Definition at line 194 of file JAstronomy.hh.
  196    {
  197      return (fabs(this->
_theta_ - angle._theta_) <= precision &&
 
  198              fabs(this->
_phi_   - angle._phi_)   <= precision);
 
  199    }
 
 
 
◆ _theta_
  
  
      
        
          | double JASTRONOMY::angle_type::_theta_ | 
         
       
   | 
  
protectedinherited   | 
  
 
 
◆ _phi_
  
  
      
        
          | double JASTRONOMY::angle_type::_phi_ | 
         
       
   | 
  
protectedinherited   | 
  
 
 
The documentation for this struct was generated from the following file: