mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:20:06 +00:00
Utility function to get geographic coordinate from i and j
This commit is contained in:
parent
5d828b0819
commit
8ae973c4cb
2 changed files with 34 additions and 0 deletions
|
|
@ -49,6 +49,19 @@ 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 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,
|
||||
units::meters<double> i,
|
||||
units::meters<double> j);
|
||||
|
||||
/**
|
||||
* Get the distance between two points.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue