de.fhg.igd.gps
Class CartesianCoordinate

java.lang.Object
  extended byde.fhg.igd.gps.CartesianCoordinate

public class CartesianCoordinate
extends Object

This class provides a 3-dimensional, cartesian geo-coordinate, where the root of the coordinate system is geocentric, its x-axis points to (0°,0°), its y-axis points to (0°,90°E) and its z-axis points to (90°N, 0°).

Author:
Jan Peters

Field Summary
private  double x_
           
private  double y_
           
private  double z_
           
 
Constructor Summary
CartesianCoordinate(double x, double y, double z)
           
 
Method Summary
 double distanceFromCenter()
           
 double distanceTo(CartesianCoordinate cart)
          Approximated distance between to cartesian coordinates in meters on the globe (altitude is negelcted).
 double getX()
           
 double getY()
           
 double getZ()
           
static CartesianCoordinate parseCoordinate(String coordinate)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x_

private double x_

y_

private double y_

z_

private double z_
Constructor Detail

CartesianCoordinate

public CartesianCoordinate(double x,
                           double y,
                           double z)
Method Detail

parseCoordinate

public static CartesianCoordinate parseCoordinate(String coordinate)

getX

public double getX()

getY

public double getY()

getZ

public double getZ()

distanceFromCenter

public double distanceFromCenter()

distanceTo

public double distanceTo(CartesianCoordinate cart)
Approximated distance between to cartesian coordinates in meters on the globe (altitude is negelcted).


toString

public String toString()


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.