public class TriangleTerrainInterpolator extends RasterTerrainInterpolator
Constructor and Description |
---|
TriangleTerrainInterpolator()
Initializes a new instance with a
RasterTerrainGridCellDiagonal defined
from the northwest to the southeast corner. |
TriangleTerrainInterpolator(RasterTerrainGridCellDiagonal rasterTerrainGridCellDiagonal)
Initializes a new instance using the specified raster terrain grid cell diagonal.
|
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 TriangleTerrainInterpolator()
RasterTerrainGridCellDiagonal
defined
from the northwest to the southeast corner.public TriangleTerrainInterpolator(@Nonnull RasterTerrainGridCellDiagonal rasterTerrainGridCellDiagonal)
rasterTerrainGridCellDiagonal
- The raster terrain grid cell diagonal.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.