TData
- The type of terrain data.public abstract class TerrainInterpolator<TData> extends Object
Modifier | Constructor and Description |
---|---|
protected |
TerrainInterpolator()
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
abstract FirstPartialsOfHeight |
interpolateFirstPartials(TData 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.
|
abstract double |
interpolateHeight(TData data,
double longitude,
double latitude)
Interpolates the height at a particular longitude and latitude from given terrain data.
|
abstract SecondPartialsOfHeight |
interpolateSecondPartials(TData 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 abstract double interpolateHeight(@Nonnull TData data, double longitude, double latitude)
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.ArgumentNullException
- Thrown when data
is null
.@Nonnull public abstract FirstPartialsOfHeight interpolateFirstPartials(@Nonnull TData data, double longitude, double latitude)
Note that the interpolation scheme may permit discontinuities along the boundaries of each terrain cell.
data
- The terrain data to use when evaluating the height.longitude
- The longitude, in native units.latitude
- The latitude, in native units.ArgumentNullException
- Thrown when data
is null
.@Nonnull public abstract SecondPartialsOfHeight interpolateSecondPartials(@Nonnull TData data, double longitude, double latitude)
Note that the interpolation scheme may permit discontinuities along the boundaries of each terrain cell.
data
- The terrain data to use when evaluating the height.longitude
- The longitude, in native units.latitude
- The latitude, in native units.ArgumentNullException
- Thrown when data
is null
.