org.mars_sim.msp.ui.standard.tool.map
Class MapUtils

java.lang.Object
  extended by org.mars_sim.msp.ui.standard.tool.map.MapUtils

public class MapUtils
extends java.lang.Object

Static class for map utilities.


Method Summary
static int getPixelDistance(double distance, java.lang.String mapType)
           
static IntPoint getRectPosition(Coordinates coords, Coordinates mapCenter, java.lang.String mapType)
          Gets a coordinate x, y position on the map image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRectPosition

public static IntPoint getRectPosition(Coordinates coords,
                                       Coordinates mapCenter,
                                       java.lang.String mapType)
Gets a coordinate x, y position on the map image.

Parameters:
coords - location of unit
mapType - the type of map.
Returns:
display point on map

getPixelDistance

public static int getPixelDistance(double distance,
                                   java.lang.String mapType)