org.osm2world.console
Class LatLonEle

Object
  extended by LatLonEle

public class LatLonEle
extends Object

immutable latitude/longitude/elevation coordinate triple


Field Summary
 double ele
           
 double lat
           
 double lon
           
static String PATTERN
          pattern for parseable arguments
static String PATTERN_WITH_ELE
           
 
Constructor Summary
LatLonEle(double lat, double lon)
          regular constructor (with default elevation of 0)
LatLonEle(double lat, double lon, double ele)
          regular constructor
LatLonEle(String arg)
          parsing constructor
 
Method Summary
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lat

public final double lat

lon

public final double lon

ele

public final double ele

PATTERN

public static final String PATTERN
pattern for parseable arguments

See Also:
Constant Field Values

PATTERN_WITH_ELE

public static final String PATTERN_WITH_ELE
See Also:
Constant Field Values
Constructor Detail

LatLonEle

public LatLonEle(double lat,
                 double lon,
                 double ele)
regular constructor


LatLonEle

public LatLonEle(double lat,
                 double lon)
regular constructor (with default elevation of 0)


LatLonEle

public LatLonEle(String arg)
parsing constructor

Parameters:
arg - command line argument to be parsed; formats see PATTERN and PATTERN_WITH_ELE
Method Detail

toString

public String toString()
Overrides:
toString in class Object