org.wdssii.core
Class Location

java.lang.Object
  extended by org.wdssii.core.Location

public class Location
extends Object

Author:
lakshman

Field Summary
static double EarthRadius
          in kilometers.
private  double ht
           
private  double lat
           
private  double lon
           
 
Constructor Summary
Location(double lat, double lon, double ht)
          lat, lon in degrees and height in kilometers.
 
Method Summary
 boolean equals(Location l)
           
 CPoint getCPoint()
           
 double getHeightKms()
           
 double getLatitude()
           
 double getLongitude()
           
 void init(double lat, double lon, double ht)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lat

private double lat

lon

private double lon

ht

private double ht

EarthRadius

public static final double EarthRadius
in kilometers.

See Also:
Constant Field Values
Constructor Detail

Location

public Location(double lat,
                double lon,
                double ht)
lat, lon in degrees and height in kilometers.

Method Detail

init

public void init(double lat,
                 double lon,
                 double ht)

getLatitude

public double getLatitude()

getLongitude

public double getLongitude()

getHeightKms

public double getHeightKms()

toString

public String toString()
Overrides:
toString in class Object

getCPoint

public CPoint getCPoint()

equals

public boolean equals(Location l)