mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:40:05 +00:00 
			
		
		
		
	Replace boost/units in favor of units library
This commit is contained in:
		
							parent
							
								
									12833202b7
								
							
						
					
					
						commit
						35b90fa98d
					
				
					 15 changed files with 67 additions and 67 deletions
				
			
		|  | @ -12,11 +12,12 @@ namespace util | |||
| namespace maplibre | ||||
| { | ||||
| 
 | ||||
| boost::units::quantity<boost::units::si::length> | ||||
| units::length::meters<double> | ||||
| GetMapDistance(const QMapLibreGL::CustomLayerRenderParameters& params) | ||||
| { | ||||
|    return QMapLibreGL::metersPerPixelAtLatitude(params.latitude, params.zoom) * | ||||
|           (params.width + params.height) / 2.0 * boost::units::si::meters; | ||||
|    return units::length::meters<double>( | ||||
|       QMapLibreGL::metersPerPixelAtLatitude(params.latitude, params.zoom) * | ||||
|       (params.width + params.height) / 2.0); | ||||
| } | ||||
| 
 | ||||
| glm::vec2 LatLongToScreenCoordinate(const QMapLibreGL::Coordinate& coordinate) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat