An object used internally to manage data from a single DEM file. More...
Public Member Functions | |
sc_earth_elevation_square (int lat, int lon, const char *pathToDemFiles) | |
constructor | |
~sc_earth_elevation_square () | |
destructor | |
double | elevationForLatLon (double lat, double lon) |
bool | hasLandInGridSquare (double lat, double lon, ElevationPrecision gridSize) |
sc_earth_elevation_square is an object used internally to manage data from a single DEM file
double sc_earth_elevation_square::elevationForLatLon | ( | double | lat, |
double | lon | ||
) |
lat | latitude (degrees -90 to 90) |
lon | longitude (degrees -180 to 180) |
References kDegreesPerPixel.
Referenced by sc_earth_elevation::elevationForLatLon(), and hasLandInGridSquare().
bool sc_earth_elevation_square::hasLandInGridSquare | ( | double | lat, |
double | lon, | ||
ElevationPrecision | gridSize | ||
) |
lat | latitude (degrees -90 to 90) |
lon | longitude (degrees -180 to 180) |
gridSize | size of grid square to analyze |
References elevationForLatLon(), and kDegreesPerPixel.
Referenced by sc_earth_elevation::hasLandInGridSquare().