Utility function to get geographic coordinate from i and j

This commit is contained in:
Dan Paulat 2024-02-10 00:08:13 -06:00
parent 5d828b0819
commit 8ae973c4cb
2 changed files with 34 additions and 0 deletions

View file

@ -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.
*