The GpsCoordinates struct.  
 More...
#include </home/runner/work/mars_lib/mars_lib/source/mars/include/mars/sensors/gps/gps_conversion.h>
◆ GpsCoordinates() [1/2]
  
  
      
        
          | mars::GpsCoordinates::GpsCoordinates  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
default   | 
  
 
 
◆ GpsCoordinates() [2/2]
  
  
      
        
          | mars::GpsCoordinates::GpsCoordinates  | 
          ( | 
          double  | 
          latitude,  | 
         
        
           | 
           | 
          double  | 
          longitude,  | 
         
        
           | 
           | 
          double  | 
          altitude  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
   26  {
   27  }
double longitude_
Definition gps_conversion.h:29
 
double altitude_
Definition gps_conversion.h:30
 
double latitude_
Definition gps_conversion.h:28
 
 
 
 
◆ operator+()
◆ operator+=()
  
  
      
        
          | void mars::GpsCoordinates::operator+=  | 
          ( | 
          const GpsCoordinates &  | 
          coordinates | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator/=()
  
  
      
        
          | void mars::GpsCoordinates::operator/=  | 
          ( | 
          const double &  | 
          n | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
   48  {
   49    if (n == 0)
   50    {
   51      throw std::overflow_error("Divide by zero exception");
   52    }
   53 
   57  }
 
 
 
◆ operator<<
  
  
      
        
          | std::ostream & operator<<  | 
          ( | 
          std::ostream &  | 
          out,  | 
         
        
           | 
           | 
          const GpsCoordinates &  | 
          coordinates  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
 
◆ latitude_
      
        
          | double mars::GpsCoordinates::latitude_ { 0 } | 
        
      
 
 
◆ longitude_
      
        
          | double mars::GpsCoordinates::longitude_ { 0 } | 
        
      
 
 
◆ altitude_
      
        
          | double mars::GpsCoordinates::altitude_ { 0 } | 
        
      
 
 
The documentation for this struct was generated from the following file: