mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 17:00:05 +00:00 
			
		
		
		
	USe a common default geodesic object instead of duplicate copies.
All used functions are constant, and don't require unique instantiations for thread safety.
This commit is contained in:
		
							parent
							
								
									4a31cf6d3e
								
							
						
					
					
						commit
						90c8c0183a
					
				
					 10 changed files with 89 additions and 47 deletions
				
			
		
							
								
								
									
										24
									
								
								scwx-qt/source/scwx/qt/util/geographic_lib.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								scwx-qt/source/scwx/qt/util/geographic_lib.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,24 @@ | |||
| #include <scwx/qt/util/geographic_lib.hpp> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace qt | ||||
| { | ||||
| namespace util | ||||
| { | ||||
| namespace GeographicLib | ||||
| { | ||||
| 
 | ||||
| const ::GeographicLib::Geodesic& DefaultGeodesic() | ||||
| { | ||||
|    static const ::GeographicLib::Geodesic geodesic_ { | ||||
|       ::GeographicLib::Constants::WGS84_a(), | ||||
|       ::GeographicLib::Constants::WGS84_f()}; | ||||
| 
 | ||||
|    return geodesic_; | ||||
| } | ||||
| 
 | ||||
| } // namespace GeographicLib
 | ||||
| } // namespace util
 | ||||
| } // namespace qt
 | ||||
| } // namespace scwx
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat