| 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()
Terrainpublic boolean intersect(Line line, Vec3 result)
Terrainpublic boolean surfacePoint(double latitude,
double longitude,
Vec3 result)
TerrainsurfacePoint in interface Terrainlatitude - 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