EMODnet Quantized Mesh Generator for Cesium
Functions
crs_conversions Namespace Reference

Simple CRS conversions tools. More...

Functions

void llh2ecef (const double &lat, const double &lon, const double &h, double &x, double &y, double &z)
 Converts from Latitude Longitude to Earth-Centered Earth-Fixed coordinates. More...
 
void ecef2llh (const double &x, const double &y, const double &z, double &lat, double &lon, double &h)
 Converts from Earth-Centered Earth-Fixed to Latitude Longitude coordinates. More...
 

Detailed Description

Simple CRS conversions tools.

Function Documentation

◆ ecef2llh()

void crs_conversions::ecef2llh ( const double &  x,
const double &  y,
const double &  z,
double &  lat,
double &  lon,
double &  h 
)

Converts from Earth-Centered Earth-Fixed to Latitude Longitude coordinates.

Parameters
xEarth-Centered Earth-Fixed X
yEarth-Centered Earth-Fixed Y
zEarth-Centered Earth-Fixed Z
latLatitude (in degrees)
lonLongitude (in degrees)
hHeight (in meters)

◆ llh2ecef()

void crs_conversions::llh2ecef ( const double &  lat,
const double &  lon,
const double &  h,
double &  x,
double &  y,
double &  z 
)

Converts from Latitude Longitude to Earth-Centered Earth-Fixed coordinates.

Parameters
latLatitude (in degrees)
lonLongitude (in degrees)
hHeight (in meters)
xEarth-Centered Earth-Fixed X
yEarth-Centered Earth-Fixed Y
zEarth-Centered Earth-Fixed Z