courselog.gpsutils
Class GeoDirection

java.lang.Object
  extended by courselog.gpsutils.GeoDirection

public class GeoDirection
extends java.lang.Object

Direction vector, in geographical units. To be used for scalar produc and projections.


Field Summary
 double x
          X coordinate of direction vector
 double y
          Y coordinate of direction vector
 double z
          Z coordinate of direction vector
 
Constructor Summary
GeoDirection()
          GeoDirection vector with coordinates 0,0,0.
GeoDirection(int xx, int yy, int zz)
          GeoDirection vector with coordinates XX,YY,ZZ.
 
Method Summary
 java.lang.String toString()
          Display (x,y,z) as a string.
static void vectorsNorthEast(GeoPoint pt, GeoDirection dNorth, GeoDirection dEast)
          Compute, for a local point pt, Nort and east vectors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public double x
X coordinate of direction vector


y

public double y
Y coordinate of direction vector


z

public double z
Z coordinate of direction vector

Constructor Detail

GeoDirection

public GeoDirection()
GeoDirection vector with coordinates 0,0,0.


GeoDirection

public GeoDirection(int xx,
                    int yy,
                    int zz)
GeoDirection vector with coordinates XX,YY,ZZ.

Method Detail

vectorsNorthEast

public static void vectorsNorthEast(GeoPoint pt,
                                    GeoDirection dNorth,
                                    GeoDirection dEast)
Compute, for a local point pt, Nort and east vectors.


toString

public java.lang.String toString()
Display (x,y,z) as a string.

Overrides:
toString in class java.lang.Object