Constructor and Description |
---|
BasicTerrain() |
Modifier and Type | Method and Description |
---|---|
void |
addTile(TerrainTile tile) |
void |
clear() |
Globe |
getGlobe()
Indicates the globe modeled by this terrain.
|
Sector |
getSector()
Indicates the geographic rectangular region that contains this terrain.
|
short[] |
getTriStripElements() |
double |
getVerticalExaggeration()
Indicates the geometric surface's vertical exaggeration.
|
boolean |
intersect(Line line,
Vec3 result)
Computes the first intersection of this terrain with a specified line in Cartesian coordinates.
|
void |
setGlobe(Globe globe) |
void |
setTriStripElements(short[] elements) |
void |
setVerticalExaggeration(double verticalExaggeration) |
boolean |
surfacePoint(double latitude,
double longitude,
double offset,
Vec3 result)
Computes the Cartesian coordinates of a geographic location on the terrain surface.
|
public Globe getGlobe()
Terrain
public void setGlobe(Globe globe)
public double getVerticalExaggeration()
Terrain
getVerticalExaggeration
in interface Terrain
public void setVerticalExaggeration(double verticalExaggeration)
public Sector getSector()
Terrain
public void addTile(TerrainTile tile)
public void clear()
public short[] getTriStripElements()
public void setTriStripElements(short[] elements)
public boolean intersect(Line line, Vec3 result)
Terrain
public boolean surfacePoint(double latitude, double longitude, double offset, Vec3 result)
Terrain
surfacePoint
in interface Terrain
latitude
- the location's latitude in degreeslongitude
- the location's longitude in degreesoffset
- a vertical offset in meters applied to the terrain heightresult
- a pre-allocated Vec3
in which to store the computed X, Y and Z Cartesian coordinates