org.mars_sim.msp.simulation.mars
Class TerrainElevation

java.lang.Object
  extended by org.mars_sim.msp.simulation.mars.TerrainElevation

public class TerrainElevation
extends java.lang.Object

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

determineTerrainDifficulty

public double determineTerrainDifficulty(Coordinates currentLocation,
                                         Direction currentDirection)
Returns terrain steepness angle from location by sampling 11.1 km in given direction

Parameters:
currentLocation - the coordinates of the current location
currentDirection - the current direction (in radians)
Returns:
terrain steepness angle (in radians)

getElevation

public double getElevation(Coordinates location)
Returns elevation in km at the given location

Parameters:
location - the location in question
Returns:
the elevation at the location (in km)

getTopoColors

public java.util.ArrayList<int[]> getTopoColors()
Gets the cached topographical colors.

Returns:
array list of colors.