public class NearestNeighborTerrainInterpolator extends RasterTerrainInterpolator
Constructor and Description |
---|
NearestNeighborTerrainInterpolator() |
Modifier and Type | Method and Description |
---|---|
FirstPartialsOfHeight |
interpolateFirstPartials(TerrainPosts data,
double longitude,
double latitude)
Interpolates the first order partial derivatives of terrain height with respect to longitude and latitude and
returns the value at the specified location based on the given terrain data.
|
double |
interpolateHeight(TerrainPosts data,
double longitude,
double latitude)
Interpolates the height at a particular longitude and latitude from given terrain data.
|
SecondPartialsOfHeight |
interpolateSecondPartials(TerrainPosts data,
double longitude,
double latitude)
Interpolates the second order (mixed) partial derivatives of terrain height with respect to longitude and latitude and
returns the value at the specified location based on the given terrain data.
|
public double interpolateHeight(TerrainPosts data, double longitude, double latitude)
TerrainInterpolator
interpolateHeight
in class TerrainInterpolator<TerrainPosts>
data
- The terrain data.longitude
- The longitude, in the native units of the terrain provider.latitude
- The latitude, in the native units of the terrain provider.@Nonnull public FirstPartialsOfHeight interpolateFirstPartials(TerrainPosts data, double longitude, double latitude)
TerrainInterpolator
Note that the interpolation scheme may permit discontinuities along the boundaries of each terrain cell.
interpolateFirstPartials
in class TerrainInterpolator<TerrainPosts>
data
- The terrain data to use when evaluating the height.longitude
- The longitude, in native units.latitude
- The latitude, in native units.@Nonnull public SecondPartialsOfHeight interpolateSecondPartials(TerrainPosts data, double longitude, double latitude)
TerrainInterpolator
Note that the interpolation scheme may permit discontinuities along the boundaries of each terrain cell.
interpolateSecondPartials
in class TerrainInterpolator<TerrainPosts>
data
- The terrain data to use when evaluating the height.longitude
- The longitude, in native units.latitude
- The latitude, in native units.