|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mars_sim.msp.simulation.mars.TerrainElevation
public class TerrainElevation
The TerrainElevation class represents the surface terrain of the virtual Mars. It can provide information about elevation and terrain ruggedness at any location on the surface of virtual Mars.
Method Summary | |
---|---|
double |
determineTerrainDifficulty(Coordinates currentLocation,
Direction currentDirection)
Returns terrain steepness angle from location by sampling 11.1 km in given direction |
double |
getElevation(Coordinates location)
Returns elevation in km at the given location |
java.util.ArrayList<int[]> |
getTopoColors()
Gets the cached topographical colors. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public double determineTerrainDifficulty(Coordinates currentLocation, Direction currentDirection)
currentLocation
- the coordinates of the current locationcurrentDirection
- the current direction (in radians)
public double getElevation(Coordinates location)
location
- the location in question
public java.util.ArrayList<int[]> getTopoColors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |