geometry
Class EarthCenterCoordinate

java.lang.Object
  extended by geometry.Coordinate
      extended by geometry.EarthCenterCoordinate

public class EarthCenterCoordinate
extends Coordinate

    This class defines the coordinate with its origin located at
     center of the earth. The z axis points to the North Pole
     and the y axis points to longitude 0 degree latitude 0 degree.


Field Summary
static double REarth
          Radius of the earth [cm]
 
Constructor Summary
EarthCenterCoordinate()
          Constructor.
 
Method Summary
 double getLatitude(J3Vector r)
          Calculate latitude in degree.
 double getLongitude(J3Vector r)
          Calculate longitude in degree.
 J3Vector getPointVectorFromLongitudeLatitude(double height, double longitude, double latitude)
          Get the point vector in this earth-center coordinate for a given longitude [deg] and latitude [deg].
 J3Vector getSurfacePoint(double longitude, double latitude)
          Get the point vector on the earth surface.
static boolean IsInsideEarth(J3Vector r)
          Check if the point is inside the earth.
 
Methods inherited from class geometry.Coordinate
getAzimuthInPolar, getEx, getEy, getEz, getLengthInPolar, getOrigin, getPointVectorFromPolarCoordinate, getZenithInPolar, rotate, setOrigin, transformThisCoordinate, transformUnitVectorToThisCoordinate, transformVectorToThisCoordinate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REarth

public static final double REarth
Radius of the earth [cm]

See Also:
Constant Field Values
Constructor Detail

EarthCenterCoordinate

public EarthCenterCoordinate()
Constructor.

Method Detail

getLongitude

public double getLongitude(J3Vector r)
Calculate longitude in degree. West : Positive East : Negative


getLatitude

public double getLatitude(J3Vector r)
Calculate latitude in degree. North : Positive South : Negative


getPointVectorFromLongitudeLatitude

public J3Vector getPointVectorFromLongitudeLatitude(double height,
                                                    double longitude,
                                                    double latitude)
Get the point vector in this earth-center coordinate for a given longitude [deg] and latitude [deg].
        double height :  height [cm] from the earth center
        double longitude : longitude [deg]
        double latitude :  latitude [deg]
        
Returns J3Vector defined in the EarthCenterCoordinate


getSurfacePoint

public J3Vector getSurfacePoint(double longitude,
                                double latitude)
Get the point vector on the earth surface. Longitude [deg] and latitude [deg] are given.


IsInsideEarth

public static boolean IsInsideEarth(J3Vector r)
Check if the point is inside the earth. If it's inside, returns true.