public interface Terrain
| Modifier and Type | Method and Description | 
|---|---|
Double | 
getElevation(LatLon location)
Computes the elevation at a specified location. 
 | 
Globe | 
getGlobe()
Returns the object's globe. 
 | 
Vec4 | 
getSurfacePoint(Angle latitude,
               Angle longitude,
               double metersOffset)
Computes the Cartesian, model-coordinate point of a location on the terrain. 
 | 
Vec4 | 
getSurfacePoint(Position position)
Computes the Cartesian, model-coordinate point of a position on the terrain. 
 | 
double | 
getVerticalExaggeration()  | 
Intersection[] | 
intersect(Position pA,
         Position pB)
Computes the intersections of a line with the terrain. 
 | 
Intersection[] | 
intersect(Position pA,
         Position pB,
         int altitudeMode)
Computes the intersections of a line with the terrain. 
 | 
Double getElevation(LatLon location)
WWTimeoutException if a timeout has been
 specified and it is exceeded during the operation.location - the location at which to compute the elevation.IllegalArgumentException - if the specified location in null.WWTimeoutException - if the current timeout is exceeded while retrieving terrain data.WWRuntimeException - if the operation is interrupted.Globe getGlobe()
Vec4 getSurfacePoint(Angle latitude, Angle longitude, double metersOffset)
WWTimeoutException if a timeout has been
 specified and it is exceeded during the operation.latitude - the location's latitude.longitude - the location's longitude.metersOffset - the location's distance above the terrain.IllegalArgumentException - if the latitude or longitude are null.WWTimeoutException - if the current timeout is exceeded while retrieving terrain data.WWRuntimeException - if the operation is interrupted.Vec4 getSurfacePoint(Position position)
WWTimeoutException if a timeout has been
 specified and it is exceeded during the operation.position - the position.IllegalArgumentException - if the position is null.WWTimeoutException - if the current timeout is exceeded while retrieving terrain data.WWRuntimeException - if the operation is interrupted.double getVerticalExaggeration()
Intersection[] intersect(Position pA, Position pB)
WWTimeoutException if a timeout has been
 specified and it is exceeded during the operation.pA - the line's first position.pB - the line's second position.IllegalArgumentException - if either position is null.WWTimeoutException - if the current timeout is exceeded while retrieving terrain data.WWRuntimeException - if the operation is interrupted.Intersection[] intersect(Position pA, Position pB, int altitudeMode)
WWTimeoutException if a timeout has been
 specified and it is exceeded during the operation.pA - the line's first position.pB - the line's second position.altitudeMode - the altitude mode indicating the reference for the altitudes in the specified positions.IllegalArgumentException - if either position is null.WWTimeoutException - if the current timeout is exceeded while retrieving terrain data.WWRuntimeException - if the operation is interrupted.