Constructor and Description |
---|
BasicTerrain() |
Modifier and Type | Method and Description |
---|---|
void |
addTile(TerrainTile tile) |
void |
clear() |
Sector |
getSector()
Indicates the geographic rectangular region that contains this terrain.
|
boolean |
intersect(Line line,
Vec3 result)
Computes the first intersection of this terrain with a specified line in Cartesian coordinates.
|
void |
setTriStripElements(short[] elements) |
boolean |
surfacePoint(double latitude,
double longitude,
Vec3 result)
Computes the Cartesian coordinates of a geographic location on the terrain surface.
|
public void addTile(TerrainTile tile)
public void clear()
public void setTriStripElements(short[] elements)
public Sector getSector()
Terrain
public boolean intersect(Line line, Vec3 result)
Terrain
public boolean surfacePoint(double latitude, double longitude, Vec3 result)
Terrain
surfacePoint
in interface Terrain
latitude
- the location's latitude in degreeslongitude
- the location's longitude in degreesresult
- a pre-allocated Vec3
in which to store the computed X, Y and Z Cartesian coordinates