DUNE: Uniform Navigational Environment  2019.02.1
DUNE::Coordinates::UTM Class Reference

Static Public Member Functions

static double distance (double north1, double east1, double z1, int zone1, double north2, double east2, double z2, int zone2)
 
static void toWGS84 (double north, double east, int zone, bool in_north_hem, double *lat, double *lon)
 
static void fromWGS84 (double lat, double lon, double *north, double *east, int *zone, bool *in_north_hem)
 

Member Function Documentation

double DUNE::Coordinates::UTM::distance ( double  north1,
double  east1,
double  z1,
int  zone1,
double  north2,
double  east2,
double  z2,
int  zone2 
)
static

Calculates distance in meters of two points in UTM coordinates.

Returns
distance in meters or -1 if zones are different
void DUNE::Coordinates::UTM::fromWGS84 ( double  lat,
double  lon,
double *  north,
double *  east,
int *  zone,
bool *  in_north_hem 
)
static

Converts WGS84 to UTM.

Parameters
[in]latlatitude
[in]lonlongitude
[out]northpointer to variable to store the northing of the UTM coordinate
[out]eastpointer to variable to store the easting of the UTM coordinate
[out]zonepointer to variable to store the zone of the UTM coordinate
[out]in_north_hempointer to variable to store the hemisphere true if UTM coordinate is in the north hemisphere, false otherwise

Referenced by DUNE::Coordinates::UTMPoint::UTMPoint().

void DUNE::Coordinates::UTM::toWGS84 ( double  north,
double  east,
int  zone,
bool  in_north_hem,
double *  lat,
double *  lon 
)
static

Converts UTM to WGS84.

Parameters
[in]northnorthing of the UTM coordinate
[in]easteasting of the UTM coordinate
[in]zonezone of the UTM coordinate
[in]in_north_hemtrue if UTM coordinate is in the north hemisphere, false otherwise
[out]latpointer to variable to store the latitude
[out]lonpointer to variable to store the longitude

Referenced by DUNE::Coordinates::UTMPoint::toWGS84().

Collaboration diagram for DUNE::Coordinates::UTM:
Collaboration graph