mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:40:06 +00:00 
			
		
		
		
	Add ticks to linked vectors
This commit is contained in:
		
							parent
							
								
									cd1547f573
								
							
						
					
					
						commit
						a0701df13f
					
				
					 3 changed files with 120 additions and 9 deletions
				
			
		|  | @ -92,6 +92,23 @@ GetAngle(double lat1, double lon1, double lat2, double lon2) | |||
|    return units::angle::degrees<double> {azi1}; | ||||
| } | ||||
| 
 | ||||
| common::Coordinate GetCoordinate(const common::Coordinate&     center, | ||||
|                                  units::angle::degrees<double> angle, | ||||
|                                  units::length::meters<double> distance) | ||||
| { | ||||
|    double latitude; | ||||
|    double longitude; | ||||
| 
 | ||||
|    DefaultGeodesic().Direct(center.latitude_, | ||||
|                             center.longitude_, | ||||
|                             angle.value(), | ||||
|                             distance.value(), | ||||
|                             latitude, | ||||
|                             longitude); | ||||
| 
 | ||||
|    return {latitude, longitude}; | ||||
| } | ||||
| 
 | ||||
| common::Coordinate GetCoordinate(const common::Coordinate& center, | ||||
|                                  units::meters<double>     i, | ||||
|                                  units::meters<double>     j) | ||||
|  |  | |||
|  | @ -49,13 +49,28 @@ bool AreaContainsPoint(const std::vector<common::Coordinate>& area, | |||
| units::angle::degrees<double> | ||||
| GetAngle(double lat1, double lon1, double lat2, double lon2); | ||||
| 
 | ||||
| /**
 | ||||
|  * Get a coordinate from a polar coordinate offset. | ||||
|  * | ||||
|  * @param [in] center The center coordinate from which the angle and distance | ||||
|  * are given | ||||
|  * @param [in] angle The angle at which the destination coordinate lies | ||||
|  * @param [in] distance The distance from the center coordinate to the | ||||
|  * destination coordinate | ||||
|  * | ||||
|  * @return offset coordinate | ||||
|  */ | ||||
| common::Coordinate GetCoordinate(const common::Coordinate&     center, | ||||
|                                  units::angle::degrees<double> angle, | ||||
|                                  units::length::meters<double> distance); | ||||
| 
 | ||||
| /**
 | ||||
|  * Get a coordinate from an (i, j) offset. | ||||
|  * | ||||
|  * @param [in] center The center coordinate from which i and j are offset | ||||
|  * @param [in] i The easting offset in meters | ||||
|  * @param [in] j The northing offset in meters | ||||
|  *  | ||||
|  * | ||||
|  * @return offset coordinate | ||||
|  */ | ||||
| common::Coordinate GetCoordinate(const common::Coordinate& center, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat