org.wdssii.core
Class CPoint

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

public class CPoint
extends Object

location in a cartesian grid situated at the earth's center. Based on Thomas Vaughan's CPoint class in the C++ version.

Version:
$Id: CPoint.java,v 1.2 2007/10/12 14:40:58 lakshman Exp $
Author:
Lakshman

Field Summary
 double x
           
 double y
           
 double z
           
 
Constructor Summary
CPoint(double x, double y, double z)
          everything in kilometers.
 
Method Summary
 Location getLocation()
           
 CVector minus(CPoint pt)
           
 CPoint plus(CVector v)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public double x

y

public double y

z

public double z
Constructor Detail

CPoint

public CPoint(double x,
              double y,
              double z)
everything in kilometers. the z direction is the polar axis. x is from center through the Greenwich meridian y is from the center of earth through the Caribbean.

Method Detail

minus

public CVector minus(CPoint pt)

getLocation

public Location getLocation()

plus

public CPoint plus(CVector v)

toString

public String toString()
Overrides:
toString in class Object