|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface ElevationModel.Elevations
The Elevations
interface provides elevations at specified latitude and longitude positions. Objects
implementing this interface are created by ElevationModel.getElevations(Sector, int)
.
Method Summary | |
---|---|
double |
getElevation(double latRadians,
double lonRadians)
Returns the elevation at a specific latitude and longitude, each specified in radians. |
short[] |
getExtremes()
|
int |
getResolution()
Returns the resolution value of the elevations. |
Sector |
getSector()
Returns the Sector the elevations pertain to. |
boolean |
hasElevations()
Indicates whether the object contains useful elevations. |
Method Detail |
---|
double getElevation(double latRadians, double lonRadians)
latRadians
- the position's latitude in radians, in the range [-π/2, +π/2].lonRadians
- the position's longitude in radians, in the range [-π, +π].
short[] getExtremes()
int getResolution()
ElevationModel
.
this
.Sector getSector()
Sector
the elevations pertain to.
boolean hasElevations()
Elevations
instance may exist
without holding any elevations. This can occur when the resources needed to determine elevations are not yet
local. This method enables the detection of that case. Callers typically use it to avoid time-consuming
computations that require valid elevations.
true
if a call to getElevation(double, double)
will return valid elevations,
otherwise false
indicating that the value 0 will always be returned from that method.
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |